No description
Find a file
2020-05-13 02:51:34 +02:00
.gitignore Initial commit 2020-05-13 02:22:52 +02:00
app.py Make it a server 2020-05-13 02:50:14 +02:00
README.md Add TODOs to README 2020-05-13 02:51:34 +02:00
requirements.txt Make it a server 2020-05-13 02:50:14 +02:00

Blokdata

Create blokmap data from a Google sheet.

Installation

  1. Setup python
virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
  1. Setup config.ini as follows
[Google]

SHEET_ID = #FILLMEIN
RANGE_NAME = #METOO
  1. Request a Google service account

  2. Store the service account's key as service_account.json

  3. Give the service account's email (read) access to the sheet

  4. python app.py

TODO

  • Code cleanup: separate files
  • Database caching: don't re-request google sheet data every time
  • Error handling: it shouldn't ever crash on user input