Python types generated from Pharm0 OpenAPI + proto schemas.
Project description
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.jsonbundled inside the wheel atpharm0_contracts/schemas/. Draft 2020-12. - OpenAPI-derived types — regenerated from
../../openapi/*.yamlon release (do not hand-edit files undersrc/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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pharm0_contracts-0.3.3.tar.gz.
File metadata
- Download URL: pharm0_contracts-0.3.3.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e5cda3d635817d69aefd0e65fa5b8559b663894445f602e4abd28f5160fd89c
|
|
| MD5 |
6837a3eb597d1fb9763349b72511f639
|
|
| BLAKE2b-256 |
053007c77eaf6bdc28fdba4b5f174c406d8224895e1007d659205a533f2249b5
|
Provenance
The following attestation bundles were made for pharm0_contracts-0.3.3.tar.gz:
Publisher:
publish.yml on pharm0-ai/pharm0-contracts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pharm0_contracts-0.3.3.tar.gz -
Subject digest:
1e5cda3d635817d69aefd0e65fa5b8559b663894445f602e4abd28f5160fd89c - Sigstore transparency entry: 1803460153
- Sigstore integration time:
-
Permalink:
pharm0-ai/pharm0-contracts@3015fb5a5ff8538843ea830c3bb2b0e6e948a2a0 -
Branch / Tag:
refs/tags/v0.3.3 - Owner: https://github.com/pharm0-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3015fb5a5ff8538843ea830c3bb2b0e6e948a2a0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pharm0_contracts-0.3.3-py3-none-any.whl.
File metadata
- Download URL: pharm0_contracts-0.3.3-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
067cbf068df310207b2f269af7e2e441047067fa573f46224cd10a4cf0dae80a
|
|
| MD5 |
8f5e96fd011d40c3625e721464c111e2
|
|
| BLAKE2b-256 |
5ffbded13bd3673103368113fd512da5ac4b3df724d1e142b612ab87045c55ba
|
Provenance
The following attestation bundles were made for pharm0_contracts-0.3.3-py3-none-any.whl:
Publisher:
publish.yml on pharm0-ai/pharm0-contracts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pharm0_contracts-0.3.3-py3-none-any.whl -
Subject digest:
067cbf068df310207b2f269af7e2e441047067fa573f46224cd10a4cf0dae80a - Sigstore transparency entry: 1803460221
- Sigstore integration time:
-
Permalink:
pharm0-ai/pharm0-contracts@3015fb5a5ff8538843ea830c3bb2b0e6e948a2a0 -
Branch / Tag:
refs/tags/v0.3.3 - Owner: https://github.com/pharm0-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3015fb5a5ff8538843ea830c3bb2b0e6e948a2a0 -
Trigger Event:
push
-
Statement type: