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.2.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.2.0
File Size Uploaded Provenance
zerodev_kora-3.2.0.tar.gz 4.9 kB With provenance Details

Built distribution (wheel)

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

Total release size: 10.8 kB

Release files / zerodev_kora-3.2.0.tar.gz

Download URL zerodev_kora-3.2.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
308d294ec61320153ddc9742ef6d63ce790ff9ead13b5246c16ce21956aff15e
BLAKE2b-256 checksum
How to use checksums
b856f3a2d1b02b48c71e37adc89ad11e62e321a63116b38dac39c065747cf144
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 20, 2026.

Transparency log

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

Download URL zerodev_kora-3.2.0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
908818abb23f8329428e0532d521fa1b05b45737630050d2e28e64b1af669022
BLAKE2b-256 checksum
How to use checksums
e388774a1d5b931614365ec5ce3bd2978baf55736b64bc01fa65f2ed4fb10088
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 20, 2026.

Transparency log

Security for zerodev-kora 3.2.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.2.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 20, 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