eet-gateway-client (Python)
Typed Python client for the EET Gateway HTTP API v1 (Czech EET 2.0). Python 3.9+, standard library only. Česky a o ostatních jazycích: clients/README.md.
pip install ./clients/python # from a checkout; not on PyPI yet
import os
from datetime import datetime
from eet_gateway_client import EetGatewayClient, IdempotencyConflictError, SaleStatus
client = EetGatewayClient("http://localhost:8080", api_key=os.environ["EET_API_KEY"])
result = client.submit_sale(
{
"porad_cis": "R-1001",
"dat_trzby": datetime.now().astimezone().isoformat(timespec="seconds"),
"celk_trzba": "123.50",
},
idempotency_key="R-1001", # repeat the call with the same key after any error
)
if result.is_pending: # queued | uncertain: the gateway keeps sending
result = client.wait_for_sale(result)
print(result.status, result.pok)
submit_salereturns aSaleResultfor HTTP 200 (accepted,verification_ok,rejected), 202 (queued,uncertain) and 422 (invalid, seeresult.issues). 409 raisesIdempotencyConflictError; other error statuses raiseApiErrorsubclasses; no answer raisesTransportError/RequestTimeoutError(all derive fromEetGatewayError).SaleInput(dataclass) is an alternative to a plaindict;Decimal,floatanddatetimevalues are formatted for you.- Every operation of the API is covered:
submit_sale,submit_batch,get_sale,get_sale_attempts,retry_sale,list_queue/iter_queue,list_registers,validate_sales,health,get_openapi,get_docs;*_rawvariants take NDJSON, CSV or XML. - The client does not retry by itself, follows no redirects and sends the API key only to the URL you gave it.
Tests: pip install -e ".[test]" && pytest. With EET_URL set (see the
overview) the integration tests run against a real gateway too.
Metadata
Release files for eet-gateway-client 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| eet_gateway_client-0.1.0.tar.gz | 22.2 kB | With provenance | Details for eet_gateway_client-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eet_gateway_client-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for eet_gateway_client-0.1.0-py3-none-any.whl |
Total release size: 38.2 kB
Release files / eet_gateway_client-0.1.0.tar.gz
| Download URL | eet_gateway_client-0.1.0.tar.gz |
|---|---|
| Size | 22.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1d141edd9a87cca95bc6dfb326416bf8ad40d7a02fd155631d70c2226fdc1c2
|
|
BLAKE2b-256 checksum How to use checksums |
3667d4813784014110c05c0958d3b3d9b9e608156614a5f422fc38377244aab9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / eet_gateway_client-0.1.0-py3-none-any.whl
| Download URL | eet_gateway_client-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba2eda56609673aadb3d180b127ad24d1e2e5c2b54384e41a93562ab4d5a4876
|
|
BLAKE2b-256 checksum How to use checksums |
a4bbd0d14f39092c0d1ca0312ab278430ad637a3f9e9b2be24aecf1dd6ba58a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logSecurity for eet-gateway-client 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for eet_gateway_client-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.