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

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

If your project also needs annotations or typed outcome helpers, install codepact==0.7.0 in its Python environment. To install the helper and matching CLI together, use codepact[cli]==0.7.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.5.0 adds opt-in explicit moves, lexical borrows, and TaskGroup checks. Use matching helper and CLI versions. Experimental ownership · Source

Metadata

Release files for codepact-cli 0.7.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.7.0
File Size Uploaded Provenance Actions
codepact_cli-0.7.0.tar.gz 350.7 kB Without provenance Details for codepact_cli-0.7.0.tar.gz

Built distributions (wheels)

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

Total release size: 20.6 MB

Release files / codepact_cli-0.7.0.tar.gz

Download URL codepact_cli-0.7.0.tar.gz
Size 350.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5628a707b04907eec072b94610bea3d75d5b6111dd592a563f6ed3303aa07674
BLAKE2b-256 checksum
How to use checksums
4bc70e9284307736250962a5c0452267a5ad9b0b0ad71ef96ef395b00cbcdfbc
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.7.0-py3-none-win_arm64.whl

Download URL codepact_cli-0.7.0-py3-none-win_arm64.whl
Size 2.4 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
d4798831cd31a7a285348a703318382c4e4fc2e3ee749586b23b09ff37229aa8
BLAKE2b-256 checksum
How to use checksums
79dce0f691dad718035d004ca14385592b38fdc582278a28cd43de679e0b9f1c
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.7.0-py3-none-win_amd64.whl

Download URL codepact_cli-0.7.0-py3-none-win_amd64.whl
Size 2.5 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
3d1db5a40b760a22db6fd96f408e7b4bd5f34c2425e4fa05028e3aa4b751a0e0
BLAKE2b-256 checksum
How to use checksums
c2d4c01f9de14f604baaf956b4e4190487ae892bf517404b0661362c2e116aaf
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.7.0-py3-none-musllinux_1_2_x86_64.whl

Download URL codepact_cli-0.7.0-py3-none-musllinux_1_2_x86_64.whl
Size 2.6 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
95449f5454dc29db9a64d3ce9823b9bcaa988bcd1b879c1f0ac60eaaf26dc78f
BLAKE2b-256 checksum
How to use checksums
2c47ffbe16a47cdd67febfb2140d5f964edbecfc71e96d85217fbcdc55cef97b
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.7.0-py3-none-musllinux_1_2_aarch64.whl

Download URL codepact_cli-0.7.0-py3-none-musllinux_1_2_aarch64.whl
Size 2.4 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
0a77739b7aa02919cf6e5d03ff9d651462fd579acb85f468774e7d5dcc50e436
BLAKE2b-256 checksum
How to use checksums
64691b2dee1a314cf5a360c9cbdb047b7e5399e9ce91ee630018b4d691d50748
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.7.0-py3-none-manylinux_2_28_aarch64.whl

Download URL codepact_cli-0.7.0-py3-none-manylinux_2_28_aarch64.whl
Size 2.4 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
3006739c1a47c94eea9e712ae4ba9710a3cbfd11def7ebffc314ac5494ba7589
BLAKE2b-256 checksum
How to use checksums
3f3f7bafef29e565f1d5d18c005902cd1a499c8328326b5aeb19469ec3aeafe6
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.7.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL codepact_cli-0.7.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.6 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
da93cc4af0e50450dd8839fc6517a2146628d32969895907986f2f8dd98aaf4e
BLAKE2b-256 checksum
How to use checksums
1e038d2103e839a56fc70274d95b60528d17d9759e9555b76b0702ec0ba26a51
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.7.0-py3-none-macosx_11_0_arm64.whl

Download URL codepact_cli-0.7.0-py3-none-macosx_11_0_arm64.whl
Size 2.6 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
27717dbc2636ace26468369cddccc811be89623a6aeca64a1f1620bb2e00f560
BLAKE2b-256 checksum
How to use checksums
862b7cfbf8040767eee7415f97c4b505f95c32b64a48defe7b76131f83e7505a
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.7.0-py3-none-macosx_10_13_x86_64.whl

Download URL codepact_cli-0.7.0-py3-none-macosx_10_13_x86_64.whl
Size 2.7 MB
Tags Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
7650e0acc3d9e5cd1a68766576cb5cfe46e0f81910cea0af35b0a9ec1999729b
BLAKE2b-256 checksum
How to use checksums
9effe37fa905e3673e63a584b5489e8744d8b9eb5dbc40959d01b9d556b0ed3b
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.7.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