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

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

If your project also needs annotations such as resource, Owned, and Borrowed, install codepact==0.5.1 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.6.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.6.0
File Size Uploaded Provenance Actions
codepact_cli-0.6.0.tar.gz 319.7 kB Without provenance Details for codepact_cli-0.6.0.tar.gz

Built distributions (wheels)

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

Total release size: 19.6 MB

Release files / codepact_cli-0.6.0.tar.gz

Download URL codepact_cli-0.6.0.tar.gz
Size 319.7 kB
Tags Source
SHA-256 checksum
How to use checksums
841567d9c91f0bb84f85ad60593d340a9b9d6d0277b115873c5ae0e7a6fd7189
BLAKE2b-256 checksum
How to use checksums
54948b60cdc1b9c96ff6d51f5a2be5310696789b0d908af806bc1d66004403ae
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.6.0-py3-none-win_arm64.whl

Download URL codepact_cli-0.6.0-py3-none-win_arm64.whl
Size 2.3 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
3823043b6ba722cd0e0bbd84a2283fb6349661b2a71fa2842a0a477fa1f3cdad
BLAKE2b-256 checksum
How to use checksums
092dd0c1ae8bc73fa97bef1b8aa2aa16acbb7fb4603a59d932a1a280fc4b93e7
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.6.0-py3-none-win_amd64.whl

Download URL codepact_cli-0.6.0-py3-none-win_amd64.whl
Size 2.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
a479dea02d69e7b21d168e78dc9e59caab0f76b84cd728dd641a7b6774f40c30
BLAKE2b-256 checksum
How to use checksums
9889cd83586d43349a31e02f5a162f48d391bd06ccb226ef6714094156729e8e
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.6.0-py3-none-musllinux_1_2_x86_64.whl

Download URL codepact_cli-0.6.0-py3-none-musllinux_1_2_x86_64.whl
Size 2.5 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
bc54e1bc737f10bc0fd578c0bd2b82ad87f38b22021712de116b5f748d87b2d5
BLAKE2b-256 checksum
How to use checksums
85b01a7a40ce23327f5d84a617ac5bb1bc7eb414cd0052cabaadad34af476916
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.6.0-py3-none-musllinux_1_2_aarch64.whl

Download URL codepact_cli-0.6.0-py3-none-musllinux_1_2_aarch64.whl
Size 2.3 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
eb1d302debb4f4d1cd1bb91de62b1356ebd8a5ce4fc08ac6ac716feb1f2405cd
BLAKE2b-256 checksum
How to use checksums
403e9e1c5daed361abf230913acd3fd99e2e73e4e495ce4871b66d144832fd39
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.6.0-py3-none-manylinux_2_28_aarch64.whl

Download URL codepact_cli-0.6.0-py3-none-manylinux_2_28_aarch64.whl
Size 2.3 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
7692c932d8f1ca129b2dd44fa66b2177db8c50f4c487e0dc342fbaf9beea0513
BLAKE2b-256 checksum
How to use checksums
e1721288ede3068ad6addbb8234b7e3ec69a4051a8297bd532ea5421d1debbbf
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.6.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL codepact_cli-0.6.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.5 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
fe8534ae236e126d221f23c869726e4bf6818b49ca964f4ca7082d7f54b857fe
BLAKE2b-256 checksum
How to use checksums
e388253f08fce66092ec703a3920099ba7d69121f18af9fb3bbefac1c2474ce7
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.6.0-py3-none-macosx_11_0_arm64.whl

Download URL codepact_cli-0.6.0-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
86674d3d9c94c175b08eb3d4a08904455c1cae30c9fe0f47491a871b1af38db0
BLAKE2b-256 checksum
How to use checksums
46521b1f81668bdb70002b56ad03ca57151ac746861b87e44698a72fe5b56821
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.6.0-py3-none-macosx_10_13_x86_64.whl

Download URL codepact_cli-0.6.0-py3-none-macosx_10_13_x86_64.whl
Size 2.6 MB
Tags Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
c5084e4f4497265c820c0880f29abf8eed52049b03d414261fb491d5404bf141
BLAKE2b-256 checksum
How to use checksums
82ae8cd00fb6330db93ec72dea8a0555cfb17cac24761abb3375b82756546b7b
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.6.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