Condicio Python
Python tools for the Condicio contract intelligence schema.
- Validate Condicio documents against the JSON Schema
- Work with typed models — dataclasses for every schema type
- Serialize/deserialize to/from JSON and YAML
- CLI for validation and inspection
Install
pip install condicio
Usage
CLI
# Validate a Condicio document
condicio validate document.json
# Validate with verbose output
condicio validate document.json --verbose
# Load from YAML
condicio validate document.yaml
Python
from condicio.validator import validate_document
from condicio.models import CondicioDocument, Party, Obligation
# Validate a raw dict
with open("document.json") as f:
import json
data = json.load(f)
errors = validate_document(data)
if errors:
for err in errors:
print(f" {err.path}: {err.message}")
else:
print("Valid Condicio document")
# Deserialize to typed models
from condicio.models import document_from_dict
doc = document_from_dict(data)
print(f"Contract: {doc.contract.title}")
for party in doc.parties:
print(f" Party: {party.name} ({party.role})")
Schema URL
By default, the validator fetches the latest schema from:
https://raw.githubusercontent.com/docfide/condicio/main/schema/condicio.schema.json
You can pass a custom schema path or URL:
from condicio.validator import CondicioValidator
v = CondicioValidator(schema_path="path/to/condicio.schema.json")
errors = v.validate(data)
License
Apache 2.0
Metadata
Release files for condicio 0.1.4
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 |
|---|---|---|---|---|
| condicio-0.1.4.tar.gz | 6.1 kB | With provenance | Details for condicio-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| condicio-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for condicio-0.1.4-py3-none-any.whl |
Total release size: 12.5 kB
Release files / condicio-0.1.4.tar.gz
| Download URL | condicio-0.1.4.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69515003cb7876ab5f9531ae3222dd49ac15043eb698fee7a2c27e02778e0faf
|
|
BLAKE2b-256 checksum How to use checksums |
e69a28d87ed717178dacea17a7e9e65915dc68267c41fcb0eb6a5efb18f5de2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 28, 2026.
Transparency logRelease files / condicio-0.1.4-py3-none-any.whl
| Download URL | condicio-0.1.4-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e9b6aad66c6a449287416be09e623d62d5d244c5cdd3d839367102ed3062433
|
|
BLAKE2b-256 checksum How to use checksums |
49e32857aedca4ff5543dde5fe68653d5f7bfd658138077811f33a870f620af3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 28, 2026.
Transparency logSecurity for condicio 0.1.4
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
Both files in this release have been uploaded with provenance metadata.
Attestation for condicio-0.1.4.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 May 28, 2026.
Transparency logA 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.