Skip to main content

Jätekukko Omakukko API client

Project description

pytekukko -- Jätekukko Omakukko API client

Python versions PyPI version CI status

Simple asyncio client for the Jätekukko Omakukko API.

The API of this package is modeled closely after the Omakukko API. Only read operations are implemented (well apart from, strictly speaking, login/logout), and there are no plans to add support for any write ones.

Usage in a nutshell:

  • construct an aiohttp ClientSession,
  • construct a Pytekukko client with it and your credentials,
  • invoke methods on the client.

The Omakukko API uses cookie based sessions, use a persistent aiohttp CookieJar to maintain client session across interpreter restarts.

High level client methods handle logging in when the need to do so is detected. If the detection is successful, there is no need to separately track session expiration or use the login method in the first place.

For usage examples, see utilities in the pytekukko.examples package. Executables and dependencies for these are installed when the package is installed with the examples extra, invoke them with --help for usage and setup information:

  • pytekukko-collection-schedules: output collection schedules in JSON
  • pytekukko-invoice-headers: output basic info on invoices in JSON
  • pytekukko-next-collections: output next collection dates in JSON
  • pytekukko-update-google-calendar: update Google Calendar with events for next collections

Disclaimer

This package is not supported by or endorsed by Jätekukko. Do not bother them with questions or issues related to it.

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

pytekukko-0.16.0.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

pytekukko-0.16.0-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file pytekukko-0.16.0.tar.gz.

File metadata

  • Download URL: pytekukko-0.16.0.tar.gz
  • Upload date:
  • Size: 26.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pytekukko-0.16.0.tar.gz
Algorithm Hash digest
SHA256 9a252a4e708c464bec31e7d804362c08568600eafb579b8ed2a57ecac223b23b
MD5 6628e9f4ea403b740c4a29ad973ca5fe
BLAKE2b-256 9d294c7079b49a6ad9094de34967d8208eaa279441f694ec72360f751f9c91df

See more details on using hashes here.

File details

Details for the file pytekukko-0.16.0-py3-none-any.whl.

File metadata

  • Download URL: pytekukko-0.16.0-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pytekukko-0.16.0-py3-none-any.whl
Algorithm Hash digest
SHA256 003ad5d9669f16e6de74e231f6b2ce05a982f10e3ff22de57a294d4566a91967
MD5 c8cceca3d93a059f5d5158b4ce6d5f5d
BLAKE2b-256 94b2fa9b30b148220aa6dde6b9719283db535eb36b6c51a88b49f434fa35a8e1

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