This repository contains the work done for automating the business intelligence services provided at OpenSourcePolitics.
The repository is composed of three parts :
- a
Matomo
folder handles the connection with the remote Matomo instance of OSP, providing basic metadata about visitors' behaviour - a
Metabase
folder does the same with the same with the remote instance of Metabase, providing basic metadata about democratic participation - a
Google Docs
folder handles the connection with the remote Google Drive instance of OSP, making it possible to create, modify and delete files.
These 3 tool are wrapped in the main.py
file, which aims to coordinate the data gathered from Matomo and Metabase and inject them in Google Drive files.
- Pull the repo
- Download the
credentials.json
file provided by the Google Drive API and paste it ingoogle_docs
folder - Fill the credentials of
Matomo
inmatomo/secrets.yml
: url, site id, and authentication token when needed - Fill the credentials of
Metabase
inmetabase/secrets.yml
: username, password and url
You're good to go !
- Define roadmap
- Add tests
- matomo
- metabase
- google docs/drive
- Build a basic CLI for non-tech use (example: I want this piece of data to fill that part of a google docs). Further specifications needed.