py-import-cycles
Detect import cycles in Python projects.
It:
- walks over given packages,
- collects (file-based) Python modules,
- extracts import statements via
astand - computes cycles.
It is conceived for having an indication whether Python packages may have structural weak points.
py-import-cycles does not take any Python module finder or loader mechanisms into account.
Installation
The py-import-cycles package is available on PyPI: python3 -m pip install --user py-import-cycles
Usage
python3 -m py_import_cycles --versionpython3 -m py_import_cycles --helppython3 -m py_import_cycles --packages /path/to/project/package
Release files for py-import-cycles 0.6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py_import_cycles-0.6.2.tar.gz | 37.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_import_cycles-0.6.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 53.1 kB
Release files / py_import_cycles-0.6.2.tar.gz
| Download URL | py_import_cycles-0.6.2.tar.gz |
|---|---|
| Size | 37.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a69b642d76f8d4ad3265ba0aa4a990a720b9520e76087827ca139be640e418e0
|
|
BLAKE2b-256 checksum How to use checksums |
1f441015777b515e98fca5430e721f72c98e65b1be63b7c17b49c193e0175340
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 15, 2026.
Transparency logRelease files / py_import_cycles-0.6.2-py3-none-any.whl
| Download URL | py_import_cycles-0.6.2-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b3fe8bf5f9cb946afc075dd17830dc0ae8635bb900b0b07c4919df46b0cd8800
|
|
BLAKE2b-256 checksum How to use checksums |
814e9633dbdfeacd3162409f48458aafcc8cb3eb6bfa44d9f871ac068a02696f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 15, 2026.
Transparency log