https://github.com/joelllllll/up-sync
Sync account and transaction data from up bank to your local environment
https://github.com/joelllllll/up-sync
accounts bank data postgres sync transactions up upbank
Last synced: 12 months ago
JSON representation
Sync account and transaction data from up bank to your local environment
- Host: GitHub
- URL: https://github.com/joelllllll/up-sync
- Owner: Joelllllll
- Created: 2024-11-23T06:30:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-09T03:18:05.000Z (about 1 year ago)
- Last Synced: 2025-06-09T04:27:50.226Z (about 1 year ago)
- Topics: accounts, bank, data, postgres, sync, transactions, up, upbank
- Language: Python
- Homepage:
- Size: 33.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Up Sync
## Running
Build the docker image
```shell
docker-compose build
```
Bring up the docker containers,
This will start the `app` and `postgres` containers.
```shell
docker-compose run app bash
```
If you wish to bring up the `metabase` (for UI) or the `mockserver` (for testing) containers, you'll need to use `--profile` with compose up
to run the tests
```shell
docker-compose up --profile mockserver
```
You'll need to export your UP token as a ENV variable
```shell
export UP_TOKEN="xxxxxxxx"
```
```shell
./up_sync.py --lookback 100
```
This will sync all accounts and their transactions into an `accounts` and `transactions` table in the database \
The `lookback` config is in days and is optional. The default lookback period is 30 days
You can access the metabase dashboard at `http://localhost:3000` to view the data
## Todo
- [ ] Config to change output format (postgres, csv dump, pyspark delta tables)
- [ ] Consume all transaction fields
- [ ] Consume all other streams
- [ ] Categories
- [ ] Tags
- [ ] Attachments
- [ ] Sync individual streams
- [ ] implement UV package manager
- [ ] better error handling for requests