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.2.tar.gz
(25.9 kB
view details)
Built Distribution
File details
Details for the file gapi-helper-0.2.2.tar.gz
.
File metadata
- Download URL: gapi-helper-0.2.2.tar.gz
- Upload date:
- Size: 25.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.6.7 Linux/4.15.0-1077-gcp
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70cbd4bcf3cb00cee30dc5e4b238ab062eb38c61acff9fefda2e1787dc2aa7bb |
|
MD5 | 38a7a5345fa875102b3bfb369399df15 |
|
BLAKE2b-256 | e4e77b6e954b4383403bffa8e4d1cfcb6b6a953b07759fef0473626c2166eb59 |
File details
Details for the file gapi_helper-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: gapi_helper-0.2.2-py3-none-any.whl
- Upload date:
- Size: 35.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.6.7 Linux/4.15.0-1077-gcp
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3b7fcfd0b0a3d8f874c6e20fce3816372f9f08e8759c897a79148e3f5288f44 |
|
MD5 | 186f7de82b06148f9e67787d1e7073a9 |
|
BLAKE2b-256 | 18c904169d13d7303431c309335370aec870ac61464039f15666a3920bfaf649 |