Skip to main content

pharm0-contracts (Python)

Shared schemas + Python types for the Pharm0 platform, lab, and web repos.

Install

uv add pharm0-contracts
# or: pip install pharm0-contracts

What's in this package

  • JSON Schemas — fidelity_report.schema.json, provenance_row.schema.json bundled inside the wheel at pharm0_contracts/schemas/. Draft 2020-12.
  • OpenAPI-derived types — regenerated from ../../openapi/*.yaml on release (do not hand-edit files under src/pharm0_contracts/generated/).

Usage

Schemas

from pharm0_contracts import (
    __version__,
    fidelity_report_schema,
    provenance_row_schema,
    load_schema,
)

# Direct module-level constants (eagerly loaded at import)
print(fidelity_report_schema["title"])
# → 'Pharm0 fidelity-report.json'

# Dynamic loading
schema = load_schema("provenance_row")

# Example: validate with jsonschema
import jsonschema
jsonschema.Draft202012Validator(fidelity_report_schema).validate(report_dict)

OpenAPI types (future release)

from pharm0_contracts.platform import AgentInvocation  # noqa  (post-generate)

Versioning

See the root CHANGELOG.md. Breaking changes require a major version bump.

Metadata

Release files for pharm0-contracts 0.3.3

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

Source distribution (sdist)

Source distribution for pharm0-contracts 0.3.3
File Size Uploaded Provenance Actions
pharm0_contracts-0.3.3.tar.gz 12.6 kB With provenance Details for pharm0_contracts-0.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pharm0-contracts 0.3.3
File Interpreter ABI Platform Actions
pharm0_contracts-0.3.3-py3-none-any.whl Python 3 none any Details for pharm0_contracts-0.3.3-py3-none-any.whl

Total release size: 23.8 kB

Release files / pharm0_contracts-0.3.3.tar.gz

Download URL pharm0_contracts-0.3.3.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1e5cda3d635817d69aefd0e65fa5b8559b663894445f602e4abd28f5160fd89c
BLAKE2b-256 checksum
How to use checksums
053007c77eaf6bdc28fdba4b5f174c406d8224895e1007d659205a533f2249b5
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 Jun 12, 2026.

Transparency log

Release files / pharm0_contracts-0.3.3-py3-none-any.whl

Download URL pharm0_contracts-0.3.3-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
067cbf068df310207b2f269af7e2e441047067fa573f46224cd10a4cf0dae80a
BLAKE2b-256 checksum
How to use checksums
5ffbded13bd3673103368113fd512da5ac4b3df724d1e142b612ab87045c55ba
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 Jun 12, 2026.

Transparency log

Security for pharm0-contracts 0.3.3

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.

Select from 2 files

Attestation for pharm0_contracts-0.3.3.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 Jun 12, 2026.

Transparency log

A 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.

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