Helpers around Google APIs
Project description
gapi-helper
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
Contributing
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 .
Tips
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)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gapi-helper-0.2.4.tar.gz
(26.2 kB
view hashes)
Built Distribution
Close
Hashes for gapi_helper-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ec1a4bab7d826bffb9a6c7f22d4b5c1036f78de66b7ab1aa86503c2dd16d70c |
|
MD5 | efb4b9f91a7d5b963dbcba6ee8331a0e |
|
BLAKE2b-256 | 5312c9e0a7ed9181dbe59546a64d815c5dd8701ed3d012292daf87f7d94e6f8c |