Skip to main content

stadar — Python SDK for the Stadar esports API

Official Python client. Pip-installable. Type-hinted. Generated from the public OpenAPI 3.1 spec — see stadar.net/docs/api for the full reference and clients/README.md in the monorepo for the codegen posture.

pip install stadar

Quick start

from stadar import Client

# Reads $STADAR_API_KEY from env, with $STADAR_API_URL override.
client = Client.from_env()

# Or pass explicitly:
client = Client(api_key="esp_live_...", base_url="https://api.stadar.net")

matches = client.matches.list(game="cs2", status="live")
for m in matches.data:
    print(m.id, m.team_a.slug, "vs", m.team_b.slug)

Sandbox

# `esp_test_`-prefixed keys auto-route to the sandbox fixture set.
# `meta.sandbox: true` flags every response from the sandbox.
client = Client(api_key="esp_test_...")

Webhooks

from stadar.webhooks import verify_signature

@app.post("/stadar-webhook")
def handle(request):
    body = request.body  # raw bytes
    signature = request.headers["X-Stadar-Signature"]
    if not verify_signature(body, signature, secret="your-webhook-secret"):
        return 401
    event = parse_event(body)
    # ... handle event

See stadar.net/docs/webhooks for the signature verification recipe.

License

MIT. Source of truth is the OpenAPI spec; regeneration is part of every spec change.

Metadata

Release files for stadar 0.1.25

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

Source distribution (sdist)

Source distribution for stadar 0.1.25
File Size Uploaded Provenance Actions
stadar-0.1.25.tar.gz 81.0 kB With provenance Details for stadar-0.1.25.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stadar 0.1.25
File Interpreter ABI Platform Actions
stadar-0.1.25-py3-none-any.whl Python 3 none any Details for stadar-0.1.25-py3-none-any.whl

Total release size: 336.6 kB

Release files / stadar-0.1.25.tar.gz

Download URL stadar-0.1.25.tar.gz
Size 81.0 kB
Tags Source
SHA-256 checksum
How to use checksums
96cc505da9dd18262c41d5c1438255420d1f6f43bd17305b87d302904e75e8e0
BLAKE2b-256 checksum
How to use checksums
0c8a7410b9513645e491a244f460a73c51e73de3dd7e3c6d062d0a41b028f902
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jul 29, 2026.

Transparency log

Release files / stadar-0.1.25-py3-none-any.whl

Download URL stadar-0.1.25-py3-none-any.whl
Size 255.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ed9921071d2d3aa166495cf78ff9439947c2a8bd68b9038beff63f78c11bcf9
BLAKE2b-256 checksum
How to use checksums
d224cce54937c5ab0b6d3a4ac9793edd296f701c92fbf0c6e070298d50c83bfe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jul 29, 2026.

Transparency log

Security for stadar 0.1.25

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 stadar-0.1.25.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 Jul 29, 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.

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