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

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

If your project also needs annotations such as resource, Owned, and Borrowed, install codepact==0.5.0 in its Python environment. The helper package installs the matching CLI automatically. 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.5.1

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.5.1
File Size Uploaded Provenance Actions
codepact_cli-0.5.1.tar.gz 281.9 kB Without provenance Details for codepact_cli-0.5.1.tar.gz

Built distributions (wheels)

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

Total release size: 19.0 MB

Release files / codepact_cli-0.5.1.tar.gz

Download URL codepact_cli-0.5.1.tar.gz
Size 281.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fee1409bc830b7e5827b4ed760f5d927c4ad1963cb2334686c1c6dd8e2e7f44b
BLAKE2b-256 checksum
How to use checksums
b5c99bbf379951171bad3f3455094bb04a18911afad11307de7859a52ec9582b
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.5.1-py3-none-win_arm64.whl

Download URL codepact_cli-0.5.1-py3-none-win_arm64.whl
Size 2.2 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
8d7458ddd38038aa5588ebbacc4e55aed594a2489b19c6484189a0a2f82ba399
BLAKE2b-256 checksum
How to use checksums
b5e2a410572bce109dd2cb9323b138df5b7bcf52c4d5704022fa357a7b3841b6
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.5.1-py3-none-win_amd64.whl

Download URL codepact_cli-0.5.1-py3-none-win_amd64.whl
Size 2.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
5703e37bec005f9cd46a2de2431de414802a2d6cb4834748746e684901a42e90
BLAKE2b-256 checksum
How to use checksums
30a968079a7b11f513c8185359bd689a020fe48170e748d4db668f95a10608f9
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.5.1-py3-none-musllinux_1_2_x86_64.whl

Download URL codepact_cli-0.5.1-py3-none-musllinux_1_2_x86_64.whl
Size 2.4 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
9e0fe86e5c55b48fbf94c0d1e8b6e8f1e334062f97a02576f958e91f291b0371
BLAKE2b-256 checksum
How to use checksums
803e4b441b3b5096e3b997f29126ef534b50605309b6dd5d1fc680cdb7ec22a9
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.5.1-py3-none-musllinux_1_2_aarch64.whl

Download URL codepact_cli-0.5.1-py3-none-musllinux_1_2_aarch64.whl
Size 2.2 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
999549ec557e5e6e8ac075701d3745f9f263f2db2a4e57742c3755f98600daab
BLAKE2b-256 checksum
How to use checksums
405259c5c58a1795c0da3616e6457b07429101adbb5d40bba960051a19e8c859
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.5.1-py3-none-manylinux_2_28_aarch64.whl

Download URL codepact_cli-0.5.1-py3-none-manylinux_2_28_aarch64.whl
Size 2.2 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
857a9fc4de3ece7a1b7108a68598af637978c5638c53ee72387cbb084a758e6a
BLAKE2b-256 checksum
How to use checksums
274775a8100e5b01ef85458fc6b9461771880c5db812257e059b1e1e3851631a
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.5.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL codepact_cli-0.5.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.4 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
19e5b864973c2eda1e98b95e9a76627c496eae366d0fcd394b3962410e3ba168
BLAKE2b-256 checksum
How to use checksums
68ec8796bfc5ac5c23decb2f0a408eca64c296a477ec494c7b71f41e37e15085
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.5.1-py3-none-macosx_11_0_arm64.whl

Download URL codepact_cli-0.5.1-py3-none-macosx_11_0_arm64.whl
Size 2.4 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3995439063c1d96bd10c37ed9f4877541d5baf23e6c26041643ecc77a819ea32
BLAKE2b-256 checksum
How to use checksums
dcb18cd704d15702d48c6ada6fbabe8ebece7027d0ceb1ed7922606e69c96f50
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.5.1-py3-none-macosx_10_13_x86_64.whl

Download URL codepact_cli-0.5.1-py3-none-macosx_10_13_x86_64.whl
Size 2.5 MB
Tags Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
6c9b16fdd0d68237f89da985c13a701a30f03155bcfa2229191499ac5448269e
BLAKE2b-256 checksum
How to use checksums
3d8714df0ad26a1dd91b2fcc306c143eb1aad48e5db182e55f2c0cd56950a765
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.5.1

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