Skip to main content

CodePact CLI

codepact-cli installs the native codepact command for static analysis of Python resource contracts. Use it to check supported use after close, missed cleanup, and discarded must-use results. The checker reads Python source without importing or running the project.

Install 0.9.0

For the current distribution's pin, see the stable install guide.

uv tool install codepact-cli==0.9.0
codepact --version

If your project also needs annotations or typed outcome helpers, install codepact==0.9.0 in its Python environment. To install the helper and matching CLI together, use codepact[cli]==0.9.0. The helper alone does not install the native command. Installation and platform support

Check a source tree

codepact check --root src
codepact check --root src --mode strict --json > codepact-report.json

Use a root that contains the source and its local contract providers. Exit 0 means the report passes the selected policy, 1 means a completed report fails policy, and 2 means the command could not complete. Advisory mode can pass with incomplete coverage. Strict mode also fails on incomplete coverage and unsuppressed possible violations. Quick start · CLI reference · CI reports

Compatibility

Installation requires Python 3.11 or later. The CLI analyzes Python 3.11, 3.12, and 3.13 source targets. Published wheels bundle the Rust executable for supported Linux, macOS, and Windows platforms. Building from source requires Rust 1.96 or later and a linker. Release artifacts

CodePact 0.9.0 adds codepact review for comparing captured source analyses and codepact contracts diff for comparing two wheel publications. Configure installed dependency roots or a reviewed runtime profile to use reviewed models and get report schema 4. Reviewed contracts and runtime models · Source

Metadata

Release files for codepact-cli 0.10.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 codepact-cli 0.10.0
File Size Uploaded Provenance Actions
codepact_cli-0.10.0.tar.gz 531.7 kB Without provenance Details for codepact_cli-0.10.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for codepact-cli 0.10.0
File Actions
codepact_cli-0.10.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for codepact_cli-0.10.0-py3-none-win_arm64.whl
codepact_cli-0.10.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for codepact_cli-0.10.0-py3-none-win_amd64.whl
codepact_cli-0.10.0-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for codepact_cli-0.10.0-py3-none-musllinux_1_2_x86_64.whl
codepact_cli-0.10.0-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for codepact_cli-0.10.0-py3-none-musllinux_1_2_aarch64.whl
codepact_cli-0.10.0-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for codepact_cli-0.10.0-py3-none-manylinux_2_28_aarch64.whl
codepact_cli-0.10.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for codepact_cli-0.10.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
codepact_cli-0.10.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for codepact_cli-0.10.0-py3-none-macosx_11_0_arm64.whl
codepact_cli-0.10.0-py3-none-macosx_10_13_x86_64.whl Python 3 none macOS 10.13+ x86-64 Details for codepact_cli-0.10.0-py3-none-macosx_10_13_x86_64.whl

Total release size: 31.1 MB

Release files / codepact_cli-0.10.0.tar.gz

Download URL codepact_cli-0.10.0.tar.gz
Size 531.7 kB
Tags Source
SHA-256 checksum
How to use checksums
abee48debbd81d2e2113a313e69cfd00d1be395e44bbf1d43daf5d93ba4c4509
BLAKE2b-256 checksum
How to use checksums
a54201f7f8d8e001d4ced781041b9130f16326da249fe6bbb2a197b42125ad49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / codepact_cli-0.10.0-py3-none-win_arm64.whl

Download URL codepact_cli-0.10.0-py3-none-win_arm64.whl
Size 3.6 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
27cd8e5722a247ad3c224745c483c4af8a0089e0bbc951fc58932dfcc4fce103
BLAKE2b-256 checksum
How to use checksums
85bc28f973dc4a04cba7c4f65ba78c609f98c0f4dca25b481a6eabcd08cf8e45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / codepact_cli-0.10.0-py3-none-win_amd64.whl

Download URL codepact_cli-0.10.0-py3-none-win_amd64.whl
Size 3.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
555c7997d8ae925717f0259a8d2a608e996319bc9525bd4a65beb0d02750e31e
BLAKE2b-256 checksum
How to use checksums
cafb0a21c03a48bce31f0553b2f540fc0eb5376bbd2d213d75d1b229074643ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / codepact_cli-0.10.0-py3-none-musllinux_1_2_x86_64.whl

Download URL codepact_cli-0.10.0-py3-none-musllinux_1_2_x86_64.whl
Size 4.0 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
7651311ff8cecb395536bc5d897fc3a1977c70e6aeed462dedfb13c7452b0df8
BLAKE2b-256 checksum
How to use checksums
71878bb66218c7ed830685feff4cd73e2d77b6be44e211899f7cc77e3f3ab264
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / codepact_cli-0.10.0-py3-none-musllinux_1_2_aarch64.whl

Download URL codepact_cli-0.10.0-py3-none-musllinux_1_2_aarch64.whl
Size 3.6 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
b9560567c0390973f481c53efdc3c4ff1669cd9670c1624a148035ab9a658040
BLAKE2b-256 checksum
How to use checksums
cec12fcbac24e02c40055ae77fee8a08b64faef0db082b757de3ff801bdf7da3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / codepact_cli-0.10.0-py3-none-manylinux_2_28_aarch64.whl

Download URL codepact_cli-0.10.0-py3-none-manylinux_2_28_aarch64.whl
Size 3.6 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
653b07a472fa9a0ea0ece2b2e8f464f28405d6ddf661a6a9fd11460f04fff8ea
BLAKE2b-256 checksum
How to use checksums
a2787a16e9b6eadb31787f9cf907ecf1ffd91762ac84edb75f5313a7a02477ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / codepact_cli-0.10.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL codepact_cli-0.10.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.0 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
3aa562f3d5747464557615c3e3911b8686a83d90e3a8eb6df3ff880e804af2fa
BLAKE2b-256 checksum
How to use checksums
3e88d535fbeafc3220923e9aeefbd865a4b9097a60e9c7884e11052ad310295e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / codepact_cli-0.10.0-py3-none-macosx_11_0_arm64.whl

Download URL codepact_cli-0.10.0-py3-none-macosx_11_0_arm64.whl
Size 3.8 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
161c1501176b552c9e14cce16281b793b9d7923f55767d67051b9a94cc67a289
BLAKE2b-256 checksum
How to use checksums
a9e15a1bad17abc78835a3dd5cf5eafcf3a1d6f61388026937d84ef3ca8e4732
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / codepact_cli-0.10.0-py3-none-macosx_10_13_x86_64.whl

Download URL codepact_cli-0.10.0-py3-none-macosx_10_13_x86_64.whl
Size 4.1 MB
Tags Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
2b40e41391b98f8837220474cec6ae0ab9689999dd443a03a2c02e7e5e4297de
BLAKE2b-256 checksum
How to use checksums
85fa3f70b1464b691ab0735943067c670efb954bda762796cf95a8d34c74570a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for codepact-cli 0.10.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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