Skip to main content

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 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

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:

  1. Put breakpoints in .venv/lib/python3.6/site-packages/googleapiclient/http.py:211 (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.2.tar.gz (25.9 kB view details)

Uploaded Source

Built Distribution

gapi_helper-0.2.2-py3-none-any.whl (35.8 kB view details)

Uploaded Python 3

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

Hashes for gapi-helper-0.2.2.tar.gz
Algorithm Hash digest
SHA256 70cbd4bcf3cb00cee30dc5e4b238ab062eb38c61acff9fefda2e1787dc2aa7bb
MD5 38a7a5345fa875102b3bfb369399df15
BLAKE2b-256 e4e77b6e954b4383403bffa8e4d1cfcb6b6a953b07759fef0473626c2166eb59

See more details on using hashes here.

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

Hashes for gapi_helper-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f3b7fcfd0b0a3d8f874c6e20fce3816372f9f08e8759c897a79148e3f5288f44
MD5 186f7de82b06148f9e67787d1e7073a9
BLAKE2b-256 18c904169d13d7303431c309335370aec870ac61464039f15666a3920bfaf649

See more details on using hashes here.

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