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

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

If your project also needs annotations or typed outcome helpers, install codepact==0.8.0 in its Python environment. To install the helper and matching CLI together, use codepact[cli]==0.8.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.8.0 adds codepact contracts export and codepact contracts verify for wheel publishers. Configure installed dependency roots or a reviewed runtime profile to use the new models and get report schema 4. Reviewed contracts and runtime models · Source

Metadata

Release files for codepact-cli 0.8.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.8.0
File Size Uploaded Provenance Actions
codepact_cli-0.8.0.tar.gz 414.9 kB Without provenance Details for codepact_cli-0.8.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for codepact-cli 0.8.0
File Actions
codepact_cli-0.8.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for codepact_cli-0.8.0-py3-none-win_arm64.whl
codepact_cli-0.8.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for codepact_cli-0.8.0-py3-none-win_amd64.whl
codepact_cli-0.8.0-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for codepact_cli-0.8.0-py3-none-musllinux_1_2_x86_64.whl
codepact_cli-0.8.0-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for codepact_cli-0.8.0-py3-none-musllinux_1_2_aarch64.whl
codepact_cli-0.8.0-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for codepact_cli-0.8.0-py3-none-manylinux_2_28_aarch64.whl
codepact_cli-0.8.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.8.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
codepact_cli-0.8.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for codepact_cli-0.8.0-py3-none-macosx_11_0_arm64.whl
codepact_cli-0.8.0-py3-none-macosx_10_13_x86_64.whl Python 3 none macOS 10.13+ x86-64 Details for codepact_cli-0.8.0-py3-none-macosx_10_13_x86_64.whl

Total release size: 24.7 MB

Release files / codepact_cli-0.8.0.tar.gz

Download URL codepact_cli-0.8.0.tar.gz
Size 414.9 kB
Tags Source
SHA-256 checksum
How to use checksums
faa94ffcfe402502fca3d08c0ddc227f7208a635237fcd22753784719fbf52b7
BLAKE2b-256 checksum
How to use checksums
5726c06d0b0e85ed4e432ae218e0af755c267cc5bb1f30fdce105f0db393f3e5
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.8.0-py3-none-win_arm64.whl

Download URL codepact_cli-0.8.0-py3-none-win_arm64.whl
Size 2.9 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
92f7694d357d78c116fd93c1f7e2739f22a03814a93fad163093dca690a5e19f
BLAKE2b-256 checksum
How to use checksums
27c565876be8c2dee5b8fbb5e0dcbad8550442ee7ebe5284620c0ce0c7d15831
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.8.0-py3-none-win_amd64.whl

Download URL codepact_cli-0.8.0-py3-none-win_amd64.whl
Size 3.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
846475c558a575233e8a81d3fd74f4548d430a8e8c0c761469e0037e9df394db
BLAKE2b-256 checksum
How to use checksums
16af7f8ddabe1af0deb6dc0a69dcbd27d90388a2c70993b88c6211600605dbfb
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.8.0-py3-none-musllinux_1_2_x86_64.whl

Download URL codepact_cli-0.8.0-py3-none-musllinux_1_2_x86_64.whl
Size 3.1 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
b450740a5b9d4e41bac9087116b67cc403b5c32dad242fcc618b089818e2ed8e
BLAKE2b-256 checksum
How to use checksums
03fd40e1d6f3b97f29824f53807eb089227308226356d5fde49485c5315ae7e6
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.8.0-py3-none-musllinux_1_2_aarch64.whl

Download URL codepact_cli-0.8.0-py3-none-musllinux_1_2_aarch64.whl
Size 2.9 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
249b0f33e52061b68e00d249324712ff86e453246d2090881cd80c84f1281eca
BLAKE2b-256 checksum
How to use checksums
9989a85e352fbe9698d84c4d337da1c7904a255da5ba4486a224e29ba3dddac0
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.8.0-py3-none-manylinux_2_28_aarch64.whl

Download URL codepact_cli-0.8.0-py3-none-manylinux_2_28_aarch64.whl
Size 2.9 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
4f8b8eff418d4b504aae9d6336db9a097fb974d3afc2f81cc8af485d04aed67e
BLAKE2b-256 checksum
How to use checksums
69f01f0fbad6aa59f7a0d3bca100b557b1e9214da409cf1ced7ee0d692e744b7
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.8.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL codepact_cli-0.8.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.1 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
e2faee8e68ab97b317ad010867c6f3fbf9d0c78cdeaa4e055c410cd9985ee23e
BLAKE2b-256 checksum
How to use checksums
9792cb0074b55aabdadcf73a3e0a1800c358aa06595c63cc17e479a8f337bc5a
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.8.0-py3-none-macosx_11_0_arm64.whl

Download URL codepact_cli-0.8.0-py3-none-macosx_11_0_arm64.whl
Size 3.1 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
13aac59d70ae4477a23ee27bebd00c094117084ab1f1a4d5b491cf1ea314ed69
BLAKE2b-256 checksum
How to use checksums
b0addabdeace95afb39bc20458d2dc4087cc46addf40c9c6708d37ae7b6855fe
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.8.0-py3-none-macosx_10_13_x86_64.whl

Download URL codepact_cli-0.8.0-py3-none-macosx_10_13_x86_64.whl
Size 3.3 MB
Tags Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
2bcb414a1e87ecec9a94ac5ea5b9b5a64f53b13b9121a0c8e5e66d5cbf52ca1a
BLAKE2b-256 checksum
How to use checksums
f84ec4c88a5bf3ee9d15329a5a5b50209c6f755688a2aba954ed98b8deeaf792
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.8.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