Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

CERVEL Public Python SDK — Experimental

This directory contains a deliberately small Python convenience layer for the public CERVEL 0.1-draft interoperability contracts.

The SDK mirrors the fields already published in the repository's example JSON Schemas. The schemas remain authoritative for the public drafts; these Python classes are convenience representations only.

Scope

Included models:

  • KnowledgeReference
  • CaptureEnvelope
  • LookupRequest
  • LookupResult and LookupResultItem
  • ErrorEnvelope
  • CapabilityDiscovery and CapabilityContract

Each model exposes to_dict() for JSON-compatible serialization.

Deliberate boundary

This SDK does not provide a CERVEL network client and does not implement authentication, authorization, capture processing, retrieval, ranking, knowledge compilation, provenance, persistence, synchronization, cryptography, model routing, agent behavior, storage, service topology, or any private CERVEL runtime mechanism.

It does not establish compatibility with a production CERVEL implementation. Compatibility claims are limited to the explicitly published experimental draft contracts and their conformance fixtures.

Example

from cervel_public import KnowledgeReference, LookupResult, LookupResultItem

reference = KnowledgeReference(id="example-knowledge-1")
result = LookupResult(items=(LookupResultItem(reference=reference, text="Example"),))

payload = result.to_dict()

The resulting payload is expected to validate against the published Lookup Result schema, including its $ref to the public Knowledge Reference schema.

Development and packaging verification

From the repository root, install the pinned validation and build dependencies:

python -m pip install -r conformance/requirements.txt -r sdk/python/requirements-build.txt

Then run the source contract checks and build both distribution formats:

python conformance/validator.py
python sdk/python/tests/test_conformance.py
python -m build --no-isolation --sdist --wheel --outdir sdk/python/dist sdk/python
python sdk/python/tests/test_distribution.py

CI additionally installs the built wheel into a fresh virtual environment with --no-index --no-deps and smoke-tests it from outside the repository source tree. This proves that the artifact itself is importable without accidentally resolving cervel_public from the checkout.

The package declares no runtime dependencies. Build tooling is directly pinned, but this experimental rollout does not claim a fully hash-locked or hermetic transitive Python dependency graph.

No package publication, artifact upload, external CERVEL service access, or production compatibility claim is performed by these checks.

Metadata

Release files for cervel-public 0.1.0a0

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

Source distribution (sdist)

Source distribution for cervel-public 0.1.0a0
File Size Uploaded
cervel_public-0.1.0a0.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cervel-public 0.1.0a0
File Interpreter ABI Platform
cervel_public-0.1.0a0-py3-none-any.whl Python 3 none any Details

Total release size: 15.2 kB

Release files / cervel_public-0.1.0a0.tar.gz

Download URL cervel_public-0.1.0a0.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3c3325c12d5a42dce5d8e81690e8767926272bc10c770c1c9934fe6464c750d2
BLAKE2b-256 checksum
How to use checksums
3e42fddbfaf741dc62a2e74068009d48010f521d05e92c7436b7ced612c2522f
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 11, 2026.

Transparency log

Release files / cervel_public-0.1.0a0-py3-none-any.whl

Download URL cervel_public-0.1.0a0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ec8e835977a0b0d736a614399bfc1985aefb40d1033ba08f8058327a3a2cbf8
BLAKE2b-256 checksum
How to use checksums
465e32d37eecefeab71d83618a39156dcace4047cbbb44d398edcfbcded97297
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 11, 2026.

Transparency log
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