Skip to main content

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)

Source distribution for condicio 0.1.4
File Size Uploaded
condicio-0.1.4.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for condicio 0.1.4
File Interpreter ABI Platform
condicio-0.1.4-py3-none-any.whl Python 3 none any Details

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 log

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

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

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