This repository contains the work done for automating the business intelligence services provided at OpenSourcePolitics.
The repository is composed of three parts :
- a
Matomofolder handles the connection with the remote Matomo instance of OSP, providing basic metadata about visitors' behaviour - a
Metabasefolder does the same with the same with the remote instance of Metabase, providing basic metadata about democratic participation - a
Google Docsfolder 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.jsonfile provided by the Google Drive API and paste it ingoogle_docsfolder - Fill the credentials of
Matomoinmatomo/secrets.yml: url, site id, and authentication token when needed - Fill the credentials of
Metabaseinmetabase/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.