Skip to main content

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 eet-gateway-client
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_sale returns a SaleResult for HTTP 200 (accepted, verification_ok, rejected), 202 (queued, uncertain) and 422 (invalid, see result.issues). 409 raises IdempotencyConflictError; other error statuses raise ApiError subclasses; no answer raises TransportError / RequestTimeoutError (all derive from EetGatewayError).
  • SaleInput (dataclass) is an alternative to a plain dict; Decimal, float and datetime values 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; *_raw variants 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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eet-gateway-client 0.1.1
File Size Uploaded Provenance Actions
eet_gateway_client-0.1.1.tar.gz 22.2 kB With provenance Details for eet_gateway_client-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for eet-gateway-client 0.1.1
File Interpreter ABI Platform Actions
eet_gateway_client-0.1.1-py3-none-any.whl Python 3 none any Details for eet_gateway_client-0.1.1-py3-none-any.whl

Total release size: 38.1 kB

Release files / eet_gateway_client-0.1.1.tar.gz

Download URL eet_gateway_client-0.1.1.tar.gz
Size 22.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6d88e3c0ddd8bcbb1492777a5e58bba1884f6bbdf77e1c467fd0459508b9e230
BLAKE2b-256 checksum
How to use checksums
3e5549a50f280a8ec345f5b9925069ecfba9fb864989c8e5eb16215432cecc20
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 31, 2026.

Transparency log

Release files / eet_gateway_client-0.1.1-py3-none-any.whl

Download URL eet_gateway_client-0.1.1-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1dc00d1935c4a6215dc8f3a217cba23b8ca079ed3ac3de646514d86e6694a1d3
BLAKE2b-256 checksum
How to use checksums
5624d19bca42e8119eea3c40017231c2a877454599338dae0edf713919278db8
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 31, 2026.

Transparency log

Security for eet-gateway-client 0.1.1

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.

Select from 2 files

Attestation for eet_gateway_client-0.1.1.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 31, 2026.

Transparency log

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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page