Helpers around Google APIs:
Also provides new classes for simpletasks-data:
DumpTask
to dump a Flask-SQLAlchemy model into a Google SheetTransferTask
to write arbitrary data to a Google SheetTransferCsvTask
to write CSV data to a Google SheetTransferSheetTask
to write a Google Sheet to another Google Sheet
ImportSheet
to use a Google Sheet as source forImportTask
To initialize the environment:
poetry install --no-root
To run tests (including linting and code formatting checks), please run:
poetry run pytest --mypy --flake8 && poetry run black --check .
How to generate requests mocks:
- Put breakpoints in .venv/lib/python3.6/site-packages/googleapiclient/http.py:211 (end of
_retry_request
method) - Create a script that will do the actions
- Ensure the debugger is configured to debug external code (
"justMyCode": false
in VSCode) - Debug that script
- Save all results to
_retry_request
(status and anonymized content) to files in data folder (if not already existing)