keyright (Python)
Python client SDK for Keyright — offline and online software-license validation with
full parity to the .NET reference client and the language-independent spec (docs/license-format.md).
Install
pip install keyright
Offline validation (full client)
from keyright import KeyrightClient, KeyrightOptions
client = KeyrightClient.initialize(KeyrightOptions(
product="nebula",
public_key_base64=EMBEDDED_PUBLIC_KEY, # base64 SubjectPublicKeyInfo
# optional: additional_public_keys_base64=[...], key rotation (FR-22)
# optional: revocation_list_json=..., offline revocation (FR-44)
))
info, source = client.validate()
if info.is_valid:
print(info.status_badge, info.entitlements.is_enabled("advanced"))
Features: license-source precedence (explicit string/file, KEYRIGHT_LICENSE env, config, default path),
node-locking (FR-31/32), entitlements (FR-60, is_enabled/get_limit), key rotation (FR-22), offline
revocation lists (FR-44), trials from first activation + clock-tamper detection (FR-50/52), and localized
messages (message(verdict, locale)).
Online activation
info = client.activate("LIC-....") # verifies + caches a signed lease; offline until the grace window ends
Stateless verify (no node-lock/state)
from keyright import verify, message
verdict = verify(license_dict, public_key_b64, expected_product="nebula") # "valid" | "expired" | ...
print(message(verdict, "fr"))
CLI
keyright-verify <license.json> <pubkey-b64-file> <now-iso> [product] [locale]
Metadata
Release files for keyright 2.8.7
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 |
|---|---|---|---|---|
| keyright-2.8.7.tar.gz | 28.1 kB | Without provenance | Details for keyright-2.8.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| keyright-2.8.7-py3-none-any.whl | Python 3 | none | any | Details for keyright-2.8.7-py3-none-any.whl |
Total release size: 54.5 kB
Release files / keyright-2.8.7.tar.gz
| Download URL | keyright-2.8.7.tar.gz |
|---|---|
| Size | 28.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40e252f3676e37af706860e87ea10c5434df2f79861488486704ffb785518f33
|
|
BLAKE2b-256 checksum How to use checksums |
89cf8427e5714d23dba01c11c954dce0624654c3a6a07b7f63adb0a97a517bf7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.18
|
Release files / keyright-2.8.7-py3-none-any.whl
| Download URL | keyright-2.8.7-py3-none-any.whl |
|---|---|
| Size | 26.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ebfb64f43579dd5b7d369a9fb357d829dc82679a31a76064ea54049defb8afe
|
|
BLAKE2b-256 checksum How to use checksums |
00ae970b9589c76f8fc675e4598e904d0d1a93424582f297d5e0a309b9ac9c90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.18
|
Security for keyright 2.8.7
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.