Will connect to ODESI database and retrieve the top 10 survey downloaded for the last month. It will create a JSON file containings those downloads.We can also parse the JSON file to create a RSS Feed see ```Flask_app.py```.
need credentials to connect to db need a secrets.json file
#using poetry
pip install poetry
poetry run python top_downloads.pyTo run an example of the app
poetry run python Flask_app.pyThis is an example of the app using data in downloads.json
Name Stmts Miss Cover
------------------------------------------------
Flask_app.py 38 38 0%
initialization.py 47 47 0%
odesi/__init__.py 0 0 100%
odesi/odesi_queries.py 4 0 100%
odesi/query_helper.py 30 6 80%
odesi/sp_utils.py 11 2 82%
odesi_tables.py 117 117 0%
tests/__init__.py 0 0 100%
tests/test_odesi_report.py 81 2 98%
top_downloads.py 27 10 63%
------------------------------------------------
TOTAL 355 222 37%
- Add Docker
- Gitlab CI
- Add Black
- Sync file
- Change repo name to 'odesi_reports'
- logs in top.downloads.py
- feedgenerator
