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.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.5.0
File Size Uploaded Provenance Actions
codepact_cli-0.5.0.tar.gz 275.3 kB Without provenance Details for codepact_cli-0.5.0.tar.gz

Built distributions (wheels)

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

Total release size: 18.8 MB

Release files / codepact_cli-0.5.0.tar.gz

Download URL codepact_cli-0.5.0.tar.gz
Size 275.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d244d1ff23818621c23978ca48dc0975096c386d96dd85b00744d730d771fdba
BLAKE2b-256 checksum
How to use checksums
78c8cd5abe440d724c1724b909d7440f6799cf76e0850549b8301ce85e08fc97
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.0-py3-none-win_arm64.whl

Download URL codepact_cli-0.5.0-py3-none-win_arm64.whl
Size 2.2 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
b1e5190bd611b24dafa683035bf8850af8548253a1d523235d6b87354f27b37b
BLAKE2b-256 checksum
How to use checksums
1403e77aa4c5e4ebb6f84d1cfd8818a4f8db9bb62e66b77d96acfe7a8e7fc347
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.0-py3-none-win_amd64.whl

Download URL codepact_cli-0.5.0-py3-none-win_amd64.whl
Size 2.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
7016ac65dcdc5b03ebde117a2589796f94c8cebaaea8d13a4fc0ff8b3fc22964
BLAKE2b-256 checksum
How to use checksums
ea25e4cce622f8802be4c5a7497268afc89782915e4852d72501afdf21dfb18c
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.0-py3-none-musllinux_1_2_x86_64.whl

Download URL codepact_cli-0.5.0-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
c57cdde46390a601c42f548ee38b421fa056822bec9aa4bed9ee54e2e5d58dec
BLAKE2b-256 checksum
How to use checksums
a60903c95a02ea4b34f6fa354428699b1e80c721b6cb6646ff3a2ac206ac09e8
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.0-py3-none-musllinux_1_2_aarch64.whl

Download URL codepact_cli-0.5.0-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
95262c1402d1bcea705ab891abc38789a2c86233c691059d3d67a84d5e4f6103
BLAKE2b-256 checksum
How to use checksums
96c44a4b5e4afb48a7fe4e067fdce6fd923213e2b47b50452c1c81f1ab51385d
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.0-py3-none-manylinux_2_28_aarch64.whl

Download URL codepact_cli-0.5.0-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
42ed81155d5b1aadc666fd8c2060e26e3b90b78c1464e4ab64f3bc3279e3b5e3
BLAKE2b-256 checksum
How to use checksums
571108a3226218939de0cbec57cb2113f2f42907bf90d91f7c84f9d3a7b02f52
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.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL codepact_cli-0.5.0-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
4c4623fe6ddc20ce5c6527bcde185ca4317abfe275256763ae70318acf73b67b
BLAKE2b-256 checksum
How to use checksums
de9260cfa279c0b9d1ff235f918dc91d1988e213d0ad04d7250c375b9f100ee7
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.0-py3-none-macosx_11_0_arm64.whl

Download URL codepact_cli-0.5.0-py3-none-macosx_11_0_arm64.whl
Size 2.3 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
bdda058a496cd786483828704646dab8476d8201e9caeaf5c3fab93ffe452f0e
BLAKE2b-256 checksum
How to use checksums
ec0f57f1c8d5edf88d7d0d7088d514746dd01cf2987d54ac0158553da8e493e5
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.0-py3-none-macosx_10_13_x86_64.whl

Download URL codepact_cli-0.5.0-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
13c844be78cfef884e74667b26cb09bd881f4f79a565a7497529a85f68ee03c9
BLAKE2b-256 checksum
How to use checksums
853575addd8e7bcd349d35de85fdfbf848df0cf6461cfd8e5bbb3aaa1415dbb4
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.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