CodePact CLI
codepact-cli distributes the Rust codepact command through Python packaging.
Installing codepact installs this matching CLI package automatically. The
CodePact 0.3.0 release is available on PyPI. The predecessor TypePact 0.2.0 release used typepact-cli and the
typepact command.
Install and inspect
Install the command with uv tool install codepact-cli==0.3.0. To build from
the repository, use uv sync --locked followed by uv run codepact.
The 0.3.0 command provides declaration inspection and bounded lifecycle checking.
Use --root src with explicit source files to resolve supported local imports
for inspection. For check, --root scans Python files below the root. Exit
0 can include possible findings or incomplete coverage; 1 reports definite
violations or inspection errors; 2 means invocation or input failure.
Lifecycle checking
CodePact 0.3.0 includes bounded cleanup checking through codepact check. To
build it from the repository root, use Rust 1.96+:
git clone https://github.com/eddiethedean/codepact.git
cd codepact
git checkout v0.3.0
cargo run --locked -- check --root examples
For a reproducible source build, use the release tag in the
0.3.0 release evidence.
The lifecycle example intentionally reports a use after close and exits 1.
Checking scans Python files below its root, reports readable diagnostics by default,
and accepts --json. Possible findings and coverage warnings can accompany exit 0.
The historical TypePact 0.2.0 CLI does not include the CodePact 0.3 cleanup and
cancellation behavior. The 0.3.0 release's qualification is recorded in the
release evidence.
Requirements and reference
Platform wheels include the executable; source installs require Rust 1.96+ and a linker. The analyzer reads Python source without importing or executing it.
The release matrix covers Linux glibc/musl, macOS and Windows on x86-64 and ARM64.
Python 3.11+ is required for installation. The CodePact codepact Rust crate
is published on crates.io; the older TypePact crate belongs to the historical
0.1.0 and 0.2.0 releases.
See the installation guide, command reference, and lifecycle tutorial. The source for all guides is in the repository docs directory.
Metadata
Release files for codepact-cli 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| codepact_cli-0.4.0.tar.gz | 241.4 kB | Without provenance | Details for codepact_cli-0.4.0.tar.gz |
Built distributions (wheels)
Total release size: 17.5 MB
Release files / codepact_cli-0.4.0.tar.gz
| Download URL | codepact_cli-0.4.0.tar.gz |
|---|---|
| Size | 241.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa149328f825164adc8016ec89d13ba7826404521700198a3182290cab9de633
|
|
BLAKE2b-256 checksum How to use checksums |
bc45d9401514bf6906b5a31f2d22affa0e321dfee36114cbc84356a3112e1d6c
|
| 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.4.0-py3-none-win_arm64.whl
| Download URL | codepact_cli-0.4.0-py3-none-win_arm64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
61228e14e62f7278dd7fd5a5f878b40533e4c4c325541444a6579bfa7581bfa0
|
|
BLAKE2b-256 checksum How to use checksums |
a14bd0343b6727f3043e2c68457239b380308ea57b01b332149da93219f0067c
|
| 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.4.0-py3-none-win_amd64.whl
| Download URL | codepact_cli-0.4.0-py3-none-win_amd64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1a30206459d4c9b485631ba72b98d2b64d0deff25c40496ecbbe0a8b38229ffd
|
|
BLAKE2b-256 checksum How to use checksums |
2fc4748b3dc061438258dbc0ea3affe65b15dc35bd8567c726adae9dd555b73d
|
| 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.4.0-py3-none-musllinux_1_2_x86_64.whl
| Download URL | codepact_cli-0.4.0-py3-none-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | Linux musl 1.2+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
ca381629cde522012409b90b17517c9cafffd25c382b59568c72c7b6ed2f9133
|
|
BLAKE2b-256 checksum How to use checksums |
30aff982987aca6397567995f37221ed4ba2ce8362c7abc078ddfa1b873e96d3
|
| 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.4.0-py3-none-musllinux_1_2_aarch64.whl
| Download URL | codepact_cli-0.4.0-py3-none-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | Linux musl 1.2+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
e63530f27bbdc8133eb42e3d470603c6342118d05769abfbcc2dd69cd0ea27e7
|
|
BLAKE2b-256 checksum How to use checksums |
8b440082e0702baaffda20db0bf9ca03919485df4aabcf2d7797214f0cf44a85
|
| 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.4.0-py3-none-manylinux_2_28_aarch64.whl
| Download URL | codepact_cli-0.4.0-py3-none-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | Linux glibc 2.28+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
0fd569b72b668c3d3b0cbe6281406fa13df71c059b587a209eb97d60ad4ff0c4
|
|
BLAKE2b-256 checksum How to use checksums |
c1ecbddca2d1c1df4d904a402d99715dee3ea6ff15e40f1abb351b463677bbff
|
| 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.4.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | codepact_cli-0.4.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
b01a23c2eb7da158f36d98e9b52def04b06dcc17c303750ab8feb7c1cb556981
|
|
BLAKE2b-256 checksum How to use checksums |
303f04ff97bc561d66433fca418decee0cb583c8978d92a1f881fceb7d6e4bbb
|
| 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.4.0-py3-none-macosx_11_0_arm64.whl
| Download URL | codepact_cli-0.4.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
81b5f15a5885172ba7403e139c40b415a830d6e225bd8b02939d3cba087df651
|
|
BLAKE2b-256 checksum How to use checksums |
56e799d9001d050d183683918e3e858fbb88cf31450ebab7093ec67dbf8b762e
|
| 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.4.0-py3-none-macosx_10_13_x86_64.whl
| Download URL | codepact_cli-0.4.0-py3-none-macosx_10_13_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | Python 3 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
31f9c391712d9a216e95d5243304db31cb9fffafbbfef0512f0242bf0c86cc78
|
|
BLAKE2b-256 checksum How to use checksums |
d466f3fc88c244f4270d0abff94c49172b6df014ea97491003317d20e5f5952d
|
| 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.4.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.