type: overview status: active authority: informative criticality: low review: status: unreviewed
CodaPact
Contracts into callable tools. Read an API contract (OpenAPI 3.0/3.1 or GraphQL), generate a typed library, then generate a CLI on top of that library.
contract ──► sources ──► semantic model ──► shaping ──► library surface ──► command model
(OpenAPI, (L1) (L2) (L3) (L4) (L5)
GraphQL) │ │
▼ ▼
library targets CLI targets
(Python, TS, plugin) (Python CLI)
Try it
Prerequisites: Git and uv.
git clone https://github.com/mikejhill/codapact.git
cd codapact
uv sync --locked
uv run codapact generate -c examples/petstore/codapact.yaml
uv run --with . --with ./examples/petstore/generated/python petstore pets list --help
Quick mode, no project file:
uv run codapact generate --source openapi.yaml --target python --target python-cli \
--package acme --program acme --out out/
Inspect any intermediate layer as JSON:
uv run codapact inspect model -c examples/library/codapact.yaml
uv run codapact inspect surface -c examples/library/codapact.yaml
uv run codapact inspect commands -c examples/library/codapact.yaml
What you get
| Output | Contents |
|---|---|
python |
Installable package: TypedDict types, a resource-per-namespace client, paging iterators, py.typed |
python-cli |
argparse CLI calling the Python library: --help with examples, --version, describe (JSON catalog for agents), doctor, shell completion, --dry-run, JSON/JSONL/YAML/table output, JSON errors, documented exit codes; env + XDG settings |
typescript |
Fetch-based client with bundled runtime; strict tsc clean |
| external plugin | Any executable speaking the JSON plugin protocol |
Generated code is a thin facade over codapact.runtime: retries, auth, validation, and
pagination live in one tested place and improve without regenerating.
Documents
- Architecture: layers, dependency rules, extension seams, and lessons taken from Smithy, Fern, Kiota, protoc, Stainless, Speakeasy, graphql-codegen, and restish.
- Configuration:
codapact.yaml, shaping transforms, target options, and generated CLI settings. - Agent skills:
create-coda-skillwrites the thin skill that lets an agent use a coda's CLI. Install in Claude Code with/plugin marketplace add mikejhill/codapact, then/plugin install codapact@codapact. - Contributing
Metadata
Release files for codapact 0.9.0
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 |
|---|---|---|---|---|
| codapact-0.9.0.tar.gz | 461.2 kB | With provenance | Details for codapact-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| codapact-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for codapact-0.9.0-py3-none-any.whl |
Total release size: 647.5 kB
Release files / codapact-0.9.0.tar.gz
| Download URL | codapact-0.9.0.tar.gz |
|---|---|
| Size | 461.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4dfdb3aa84400ec54ad46d98bbdff4e6dafcf05d19231b348932440c810b3d96
|
|
BLAKE2b-256 checksum How to use checksums |
d5772423d8a3226dd9596ce153293dfa92357d7a254e3ab23f62638712969e0b
|
| 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 Nov 15, 2026.
Transparency logRelease files / codapact-0.9.0-py3-none-any.whl
| Download URL | codapact-0.9.0-py3-none-any.whl |
|---|---|
| Size | 186.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44837f620eac98f66728a2549cb84a68c740104f90ea13b0af7cc9dc84a89ac3
|
|
BLAKE2b-256 checksum How to use checksums |
d1ed8e3f2c303d7dc875ea43e2c6e29c956a1b58d4045cd3c28741e5f94dd89d
|
| 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 Nov 15, 2026.
Transparency logSecurity for codapact 0.9.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.
Attestation for codapact-0.9.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 Nov 15, 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.