CIRISVerify Python Bindings
Python bindings for CIRISVerify, the hardware-rooted license verification module for the CIRIS ecosystem.
Installation
pip install ciris-verify
Note: The CIRISVerify binary must be installed separately. See the CIRISVerify documentation for installation instructions.
Quick Start
import os
from ciris_verify import CIRISVerify, LicenseStatus
# Initialize the verifier
verifier = CIRISVerify()
# Get license status with a fresh nonce
status = await verifier.get_license_status(
challenge_nonce=os.urandom(32)
)
# Check if professional capabilities are available
if status.allows_licensed_operation():
print("Professional license verified!")
print(f"Tier: {status.license.tier}")
print(f"Capabilities: {status.license.capabilities}")
else:
print("Running in community mode")
# IMPORTANT: Always display the mandatory disclosure
print(status.mandatory_disclosure.text)
Mandatory Disclosure
Per the CIRIS ecosystem rules, agents MUST display the mandatory_disclosure.text to users. This ensures transparency about the agent's capabilities and licensing status.
# The disclosure MUST be shown to users
disclosure = status.mandatory_disclosure
print(f"[{disclosure.severity.upper()}] {disclosure.text}")
Capability Checking
For frequent capability checks, use the fast path:
result = await verifier.check_capability("medical:diagnosis")
if result.allowed:
# Capability is available
pass
else:
print(f"Capability denied: {result.reason}")
Testing
For testing without the actual binary, use MockCIRISVerify:
from ciris_verify import MockCIRISVerify, LicenseStatus
# Create a mock that returns community mode
verifier = MockCIRISVerify(
mock_status=LicenseStatus.UNLICENSED_COMMUNITY
)
# Use exactly like the real client
status = await verifier.get_license_status(os.urandom(32))
assert status.status == LicenseStatus.UNLICENSED_COMMUNITY
Error Handling
from ciris_verify import (
CIRISVerifyError,
BinaryNotFoundError,
BinaryTamperedError,
VerificationFailedError,
)
try:
verifier = CIRISVerify()
status = await verifier.get_license_status(os.urandom(32))
except BinaryNotFoundError as e:
# Binary not installed
print(f"CIRISVerify not found: {e.path}")
except BinaryTamperedError:
# CRITICAL: Binary has been modified
# Halt all operations immediately
raise SystemExit("SECURITY ALERT: Binary integrity compromised")
except VerificationFailedError as e:
# Verification failed - operate in restricted mode
print(f"Verification failed: {e}")
License Status Codes
| Status | Code | Description |
|---|---|---|
LICENSED_PROFESSIONAL |
100 | Full professional license active |
LICENSED_PROFESSIONAL_GRACE |
101 | License valid, in offline grace period |
UNLICENSED_COMMUNITY |
200 | Community mode, no professional capabilities |
RESTRICTED_* |
300-399 | Restricted mode due to verification issues |
ERROR_* |
400-499 | Error states (revoked, expired, etc.) |
LOCKDOWN_* |
500+ | Critical security failure, halt operations |
Thread Safety
The client is thread-safe and can be used from multiple threads or async tasks concurrently.
License
AGPL-3.0-or-later - See LICENSE file in the CIRISVerify repository.
Release files for ciris-verify 15.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ciris_verify-15.1.0.tar.gz | 83.6 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| ciris_verify-15.1.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| ciris_verify-15.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
| ciris_verify-15.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| ciris_verify-15.1.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| ciris_verify-15.1.0-py3-none-macosx_10_12_x86_64.whl | Python 3 | none | macOS 10.12+ x86-64 | Details |
Total release size: 30.8 MB
Release files / ciris_verify-15.1.0.tar.gz
| Download URL | ciris_verify-15.1.0.tar.gz |
|---|---|
| Size | 83.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
739178ba4d76ec14dd124cbefa15d44d410c50ce54362f06b2ea750a92f45879
|
|
BLAKE2b-256 checksum How to use checksums |
21078273cd04c65d9fbe0c6df7af180a29be9f78f88ef78be0453a9a3aecd087
|
| 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 Sep 10, 2026.
Transparency logRelease files / ciris_verify-15.1.0-py3-none-win_amd64.whl
| Download URL | ciris_verify-15.1.0-py3-none-win_amd64.whl |
|---|---|
| Size | 6.5 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
12538cce0429ec757d839b47378fa671fd59e24bbe3ccd5534778f5cc4537d62
|
|
BLAKE2b-256 checksum How to use checksums |
2dc4300f681d10da07afe702face068dce016e50491eb92a13e7ece2c235fa34
|
| 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 Sep 10, 2026.
Transparency logRelease files / ciris_verify-15.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | ciris_verify-15.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 6.6 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
0186d32424b0e99c08d90bcd892eb3b5d96d2641b818e79d7903b677aea480a5
|
|
BLAKE2b-256 checksum How to use checksums |
caa641aeca6c9a485b7faa622d021b0e037c39037982880f41db62b191eb7641
|
| 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 Sep 10, 2026.
Transparency logRelease files / ciris_verify-15.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | ciris_verify-15.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 6.1 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
62f765641aa4953c434a19820a9a720346070226c3f576ba75671dfef4aebfa1
|
|
BLAKE2b-256 checksum How to use checksums |
8a85d3757e140f8ffd40a12b3ae2644244f9017d0f9bf0d220ad949e6815bf49
|
| 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 Sep 10, 2026.
Transparency logRelease files / ciris_verify-15.1.0-py3-none-macosx_11_0_arm64.whl
| Download URL | ciris_verify-15.1.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 5.5 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
3af8ed192c43db90ee4a4f209c32e7aacc9f72b0d0f30840d55c1f320ca0d798
|
|
BLAKE2b-256 checksum How to use checksums |
c801c8a8de0c936b23c19a24bbc1eb8ce8a43202f67cb57fac751dcf637df0f3
|
| 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 Sep 10, 2026.
Transparency logRelease files / ciris_verify-15.1.0-py3-none-macosx_10_12_x86_64.whl
| Download URL | ciris_verify-15.1.0-py3-none-macosx_10_12_x86_64.whl |
|---|---|
| Size | 6.0 MB |
| Tags | Python 3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
dbdbfa7c6a3fe4c840740c8734d3888d5accb0088afb313b16482be88e07a0b3
|
|
BLAKE2b-256 checksum How to use checksums |
a59f0077cfc80a98514bfe171ad36a385c100dcbee3801d7e72e71373c303257
|
| 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 Sep 10, 2026.
Transparency log