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.4.tar.gz (26.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file gapi-helper-0.2.4.tar.gz.

File metadata

  • Download URL: gapi-helper-0.2.4.tar.gz
  • Upload date:
  • Size: 26.2 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.4.tar.gz
Algorithm Hash digest
SHA256 56f1d808a0157f2e2aa970ec88c1bd4943b2177e53868bb5cc5ce40bf0cf435c
MD5 bc47e6842477eb77066d2bd6c413679e
BLAKE2b-256 1ca688703ffe25d9117638d0d5b30d1892cc923cd2a651e243df8a3b576e9079

See more details on using hashes here.

File details

Details for the file gapi_helper-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: gapi_helper-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 36.1 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2ec1a4bab7d826bffb9a6c7f22d4b5c1036f78de66b7ab1aa86503c2dd16d70c
MD5 efb4b9f91a7d5b963dbcba6ee8331a0e
BLAKE2b-256 5312c9e0a7ed9181dbe59546a64d815c5dd8701ed3d012292daf87f7d94e6f8c

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