Skip to main content

Helpers around Google APIs

Project description


Helpers around Google APIs:

Also provides new classes for simpletasks-data:

  • DumpTask to dump a Flask-SQLAlchemy model into a Google Sheet
  • TransferTask to write arbitrary data to a Google Sheet
    • TransferCsvTask to write CSV data to a Google Sheet
    • TransferSheetTask to write a Google Sheet to another Google Sheet
  • ImportSheet to use a Google Sheet as source for ImportTask


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:

  1. Put breakpoints in .venv/lib/python3.6/site-packages/googleapiclient/ (end of _retry_request method)
  2. Create a script that will do the actions
  3. Ensure the debugger is configured to debug external code ("justMyCode": false in VSCode)
  4. Debug that script
  5. 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)

Uploaded Source

Built Distribution

gapi_helper-0.2.4-py3-none-any.whl (36.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page