jameshanlon / finances

Fetch personal finance data from Google Sheets and generate a set of summary HTML reports.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Personal finances

Fetch personal finance data from Google Sheets and generate a set of summary HTML reports.

Getting started

Setup NPM:

$ wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
...
$ npm install 20
...
$ npm install
...

Setup environment:

$ make install
$ make test

Fetch data from spreadsheets, eg:

$ make fetch-all
$ make fetch-latest

Run a server to view the HTML:

$ make serve

Read all pickled data and generate the HTML report:

$ python main.py

Google sheets API access

Access data held in Google Sheets using the gspread Python package.

Setup API access using these instructions for OAuth2:

https://docs.gspread.org/en/latest/oauth2.html#enable-api-access-for-a-project

Or as a service user (sidesteps issues with expiring keys and making the app public):

https://docs.gspread.org/en/latest/oauth2.html#for-bots-using-service-account

About

Fetch personal finance data from Google Sheets and generate a set of summary HTML reports.


Languages

Language:Python 43.4%Language:JavaScript 35.6%Language:HTML 18.1%Language:Makefile 2.7%Language:CSS 0.3%