Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshbello/notion-asset-tracker
Using Python and GCP Cloud Functions to Tracker Assets on Notion
https://github.com/joshbello/notion-asset-tracker
api cloud-functions gcp gcp-cloud-functions notion notion-database python
Last synced: 8 days ago
JSON representation
Using Python and GCP Cloud Functions to Tracker Assets on Notion
- Host: GitHub
- URL: https://github.com/joshbello/notion-asset-tracker
- Owner: JoshBello
- Created: 2020-05-24T13:32:23.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-27T07:59:57.000Z (over 4 years ago)
- Last Synced: 2024-11-13T18:26:49.083Z (2 months ago)
- Topics: api, cloud-functions, gcp, gcp-cloud-functions, notion, notion-database, python
- Language: Python
- Homepage:
- Size: 4.57 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Notion Based Portfolio Tracker
### Using Python, Cloud Functions, Pub/Sub and Cloud Scheduler![](notion.table.gif)
## Background:
After recently switching from Trello to Notion as my primary productivity tool, I wanted to see what was possible with Notion's API. A basic portfolio tracker seemed like a good start.
This project uses `notion-py` which is an unofficial Python client for Notions API. For the current asset values, I'm using `yfinance` which allows easy access to data from Yahoo Finance. One thing to note with this is that the ticker values used have to correspond with values on the platform.
## Google Cloud Platform Architecture:
## Getting Started:
### Prerequisites:
```
notion == 0.0.25
yfinance == 0.1.54
forex_python == 1.5
```## 1. Updating Variables:
The following variabels require updating:
```
token_v2 =
page_url =
table_url =
```## 2. Setting up Cloud Functions and Pub/Sub:
* Trigger - choose Pub/Sub and either create a new or use an exiting topic.
* Either upload or copy/paste the main.py and requrements.txt file.
* Set the function to execute as 'run'.
* The function can be tested using 'Test function' option under the actions menu once deployed.## 3. Setting up Cloud Scheduler:
* Set the target to the Pub/Sub topic.