Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ciris_verify-13.0.0.tar.gz (83.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ciris_verify-13.0.0-py3-none-win_amd64.whl (6.5 MB view details)

Uploaded Python 3Windows x86-64

ciris_verify-13.0.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

ciris_verify-13.0.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

ciris_verify-13.0.0-py3-none-macosx_11_0_arm64.whl (5.5 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

ciris_verify-13.0.0-py3-none-macosx_10_12_x86_64.whl (6.0 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file ciris_verify-13.0.0.tar.gz.

File metadata

  • Download URL: ciris_verify-13.0.0.tar.gz
  • Upload date:
  • Size: 83.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ciris_verify-13.0.0.tar.gz
Algorithm Hash digest
SHA256 23cac8110c0d49f0583ca3de7c80ffa989a1fe3de65114bf20758088dbda14c5
MD5 a6a5800c02494a4b8679b786009000d7
BLAKE2b-256 9e6abe3d27cc5f01687cd8631203f23f9cb2912219218c53bd06cd69827b0421

See more details on using hashes here.

Provenance

The following attestation bundles were made for ciris_verify-13.0.0.tar.gz:

Publisher: release.yml on CIRISAI/CIRISVerify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ciris_verify-13.0.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for ciris_verify-13.0.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 6916ecdeaa3e429200020a482ea8cd209b8cb9fe48d8675312e08c4767025690
MD5 633f405f924e34c913d5b71dce163c8e
BLAKE2b-256 7f4b395bed2c49357c0e6812f596ba835cb5f3c9ee9c9d8a4753e241bdfd14b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for ciris_verify-13.0.0-py3-none-win_amd64.whl:

Publisher: release.yml on CIRISAI/CIRISVerify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ciris_verify-13.0.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ciris_verify-13.0.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 07dabc804b7ff791e5e95e33f7d8748782c2fb3f783b02cc26950168f02aa3ae
MD5 76573ba3a26dedbe5e0a7c0fe7ce8edc
BLAKE2b-256 4db5d760c6ab7fe93f7d878d4acb97333e46b66a7426900afb1f98e2ea9fafc7

See more details on using hashes here.

Provenance

The following attestation bundles were made for ciris_verify-13.0.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on CIRISAI/CIRISVerify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ciris_verify-13.0.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for ciris_verify-13.0.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 113879bd6a2a54d96de403c4384e7e26944d1419d2aff7592e71d75f9a8b3029
MD5 5a236e5df3e55580c410a90ae58b07a2
BLAKE2b-256 89dc6929bad4f8af6d402feab258223bba4020cdd194aab88ae0b268076ac4b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for ciris_verify-13.0.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on CIRISAI/CIRISVerify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ciris_verify-13.0.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ciris_verify-13.0.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5b0ff682a7632f6f83cf8066129b34df792efed16050be06e4d6558e4aa88036
MD5 f3667a60546e37d9751934fbd1649d71
BLAKE2b-256 044dd38f7115d423fbafc93febd06dbf2c6895c7751f92bc25f81ab2a3519d28

See more details on using hashes here.

Provenance

The following attestation bundles were made for ciris_verify-13.0.0-py3-none-macosx_11_0_arm64.whl:

Publisher: release.yml on CIRISAI/CIRISVerify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ciris_verify-13.0.0-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for ciris_verify-13.0.0-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 44996442e7129aab2e99e48b43248a1b97704535209a8a63dde1c24d4abb4d9b
MD5 c4db281ffcae06d0a27585dbb9ee9b2e
BLAKE2b-256 83882de82a484811bb85d3691aca264fce8dd7b024a44553956791b4f621a0d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for ciris_verify-13.0.0-py3-none-macosx_10_12_x86_64.whl:

Publisher: release.yml on CIRISAI/CIRISVerify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page