Skip to main content

zerodev-kora

Official Python SDK for Kora.

pip install zerodev-kora

Validation

from kora import Client

kora = Client("https://kora.example.com", product="MyApp", public_key=open("kora.pem").read())

result = kora.validate("XXXXX-XXXXX-XXXXX-XXXXX")
if not result.valid:
    raise SystemExit(result.message)

result holds valid, code, message, license and timestamp. With public_key set, an answer without a valid x-kora-signature raises KoraError.

Extra fields are keyword arguments, for example the device id a whitelist group reads: kora.validate(key, hwid=machine_id).

Devices

activated = kora.activate(key, hwid=machine_id)
if activated.code == "seats_full":
    print(activated.message)

kora.deactivate(key, hwid=machine_id)

activate takes a free seat in each whitelist group of the product for the values in the request, then validates. deactivate frees them and returns success, code (deactivated, not_activated, not_found) and removed.

Offline licenses

file = admin.file(license["id"])
offline = kora.offline(file)

file downloads a signed license file with an API token. offline checks the file against public_key without a network call and raises KoraError when the signature is wrong, the license expired or refresh_after has passed. Validate online first and fall back to the file when Kora cannot be reached.

Licenses, products and customers

kora = Client("https://kora.example.com", api_key="kora_...")

product = kora.products.create(name="MyApp", version="1.0.0")
customer = kora.customers.create(name="Jane", email="jane@example.com")
license = kora.licenses.create(product_id=product["id"], customer_id=customer["id"])

page = kora.licenses.list(status="active", limit=25)
kora.licenses.update(license["id"], status="suspended")
kora.licenses.delete(license["id"])

Every resource has list, get, create, update and delete. Block a customer with customers.update(id, blocked=True) and fold a duplicate into a customer with kora.merge(id, duplicate_id). delete(id, force=True) forces removal of products and customers that still have licenses. Failed requests raise KoraError with status.

Options

Argument Description
url Kora API address.
api_key API token, sent as Authorization: Bearer.
product Default product name for validate.
public_key Kora's Ed25519 public key. Turns on signature checks.
timeout_sec Request timeout. Defaults to 15.

Metadata

Release files for zerodev-kora 3.1.0

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

Source distribution (sdist)

Source distribution for zerodev-kora 3.1.0
File Size Uploaded Provenance
zerodev_kora-3.1.0.tar.gz 4.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for zerodev-kora 3.1.0
File Interpreter ABI Platform
zerodev_kora-3.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.8 kB

Release files / zerodev_kora-3.1.0.tar.gz

Download URL zerodev_kora-3.1.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
416ff2504732ba04e034ffbcb3793657590244252c2f9d9637eb0e95e68e6e77
BLAKE2b-256 checksum
How to use checksums
2bd20a40481302b5729cf8f457d0f4a2b46a3bd38c0d043420a6cbf85def0169
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 18, 2026.

Transparency log

Release files / zerodev_kora-3.1.0-py3-none-any.whl

Download URL zerodev_kora-3.1.0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8315594f35000771e3f51159be93bdc1b85d9e9686c35a7d62328ab7cdccb4f8
BLAKE2b-256 checksum
How to use checksums
59cb4b22ff778deb8199a9f866e866af7ada86c5728acfe6b4b3e8ecbaa3fd52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 18, 2026.

Transparency log

Security for zerodev-kora 3.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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for zerodev_kora-3.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 18, 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.

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