Jätekukko Omakukko API client
Project description
pytekukko -- Jätekukko Omakukko API client
Simple Python 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
Pytekukkoclient 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.
Command line examples
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 JSONpytekukko-invoice-headers: output basic info on invoices in JSONpytekukko-next-collections: output next collection dates in JSON
Shell completions for the examples can be generated with shtab's CLI usage mode.
shtab \
--prog pytekukko-collection-schedules \
--prefix pytekukko_collection_schedules \
pytekukko.examples.print_collection_schedules.argparser
shtab \
--prog pytekukko-invoice-headers \
--prefix pytekukko_invoice_headers \
pytekukko.examples.print_invoice_headers.argparser
shtab \
--prog pytekukko-next-collections \
--prefix pytekukko_next_collections \
pytekukko.examples.print_next_collections.argparser
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytekukko-0.17.0.tar.gz.
File metadata
- Download URL: pytekukko-0.17.0.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c254ab2178350a7bce1c10717ff0f945cc5328bcf3386abfaa0b460ba1732fc6
|
|
| MD5 |
a7a315ccb74329d93640ed9a996dfae7
|
|
| BLAKE2b-256 |
c140d09a3a01238343fcc8f1a033af1b0c4a539eb45511aea42da442fa06fea3
|
Provenance
The following attestation bundles were made for pytekukko-0.17.0.tar.gz:
Publisher:
release.yaml on scop/pytekukko
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytekukko-0.17.0.tar.gz -
Subject digest:
c254ab2178350a7bce1c10717ff0f945cc5328bcf3386abfaa0b460ba1732fc6 - Sigstore transparency entry: 601261937
- Sigstore integration time:
-
Permalink:
scop/pytekukko@0889e896b3d26d7952f3b7809dd029c608af0c74 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/scop
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@0889e896b3d26d7952f3b7809dd029c608af0c74 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pytekukko-0.17.0-py3-none-any.whl.
File metadata
- Download URL: pytekukko-0.17.0-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d25ec15d3e2c18de995573d649916e68a08246ac5a0a04fcf8efc93f9631fd78
|
|
| MD5 |
c92ec4778fc721b5826631b7c31a2c56
|
|
| BLAKE2b-256 |
c1805bab7b269ac58ccc61df89ae47b94e9e8bcd0a7e22e1909a8c3919b5f3d5
|
Provenance
The following attestation bundles were made for pytekukko-0.17.0-py3-none-any.whl:
Publisher:
release.yaml on scop/pytekukko
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytekukko-0.17.0-py3-none-any.whl -
Subject digest:
d25ec15d3e2c18de995573d649916e68a08246ac5a0a04fcf8efc93f9631fd78 - Sigstore transparency entry: 601261938
- Sigstore integration time:
-
Permalink:
scop/pytekukko@0889e896b3d26d7952f3b7809dd029c608af0c74 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/scop
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@0889e896b3d26d7952f3b7809dd029c608af0c74 -
Trigger Event:
push
-
Statement type: