Skip to main content

CodaPact

CodaPact wordmark

Contracts into callable tools.

This first iteration generates an installable, typed Python client and a scriptable CLI from a local or remote OpenAPI contract. The package, module, and generator CLI are named codapact. Install a published release with uv tool install codapact, or use the source workflow below.

uv sync
uv run codapact generate examples/pets.yaml --output .tmp/pets-client --package pets_client
uv build
uv pip install --no-deps .tmp/pets-client
uv run pets-client --config examples/runtime.json get-pet --arg-pet-id 7

The example server address is intentionally inert. Override base_url with your own trusted endpoint and set the environment variable referenced by the runtime configuration. Tests use isolated loopback HTTP servers and synthetic credentials.

from pets_client import Client

client = Client(settings={"auth": {"token": {"env": "PETS_TOKEN"}}})
pet = client.get_pet(parameters={"pet_id": 7})

Reusable generation values are supported with uv run codapact generate --manifest examples/pets.codapact.yaml. The resulting pets command discovers config.json and auth.json in $XDG_CONFIG_HOME/pets or ~/.config/pets. Override its directory with pets --config-dir PATH .... See the configuration guide for precedence, credential-file permissions, and every generation override.

Run uv run poe check for formatting, lint, type checking, and tests. Generated packages depend on this runtime at the exact generator version. For unreleased source changes, install the local runtime wheel and generated wheel together. The end-to-end test proves that workflow in a fresh environment.

Metadata

Release files for codapact 0.1.0

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

Source distribution (sdist)

Source distribution for codapact 0.1.0
File Size Uploaded Provenance Actions
codapact-0.1.0.tar.gz 131.2 kB With provenance Details for codapact-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 162.0 kB

Release files / codapact-0.1.0.tar.gz

Download URL codapact-0.1.0.tar.gz
Size 131.2 kB
Tags Source
SHA-256 checksum
How to use checksums
999a5ea0514b55a273ffd7b6c8951b204fc1fb78eaabefcbac798135dd7ffd53
BLAKE2b-256 checksum
How to use checksums
c25e7a8b8b68c76331702dc239d222b7b2e640d1bb507c669329cf6c30f5deec
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 Oct 29, 2026.

Transparency log

Release files / codapact-0.1.0-py3-none-any.whl

Download URL codapact-0.1.0-py3-none-any.whl
Size 30.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1aeaf47f2de50e009b26b4d440d7533026a98db66fbe6508faf70edc7b5d6c0f
BLAKE2b-256 checksum
How to use checksums
22d219dc181885857be893717009f93771a8530f8cd960dc0476a29649eb126c
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 Oct 29, 2026.

Transparency log

Security for codapact 0.1.0

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 codapact-0.1.0.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 Oct 29, 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