Detect import cycles in Python projects
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_import_cycles-0.6.0.tar.gz.
File metadata
- Download URL: py_import_cycles-0.6.0.tar.gz
- Upload date:
- Size: 37.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a15281567566a3d6aa14712bc70b51b1ae34f3169a68d13f10f2a50a1cedb894
|
|
| MD5 |
ac112083aaef523394968a443cdfc834
|
|
| BLAKE2b-256 |
165e0caa6446f5751aec17bc91c38a9f6c261f46dedd953cc23f8d2bd1f6205d
|
Provenance
The following attestation bundles were made for py_import_cycles-0.6.0.tar.gz:
Publisher:
publish.yml on si-23/py-import-cycles
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
py_import_cycles-0.6.0.tar.gz -
Subject digest:
a15281567566a3d6aa14712bc70b51b1ae34f3169a68d13f10f2a50a1cedb894 - Sigstore transparency entry: 1305507509
- Sigstore integration time:
-
Permalink:
si-23/py-import-cycles@8712e194d5f12f66dea4d65a19e2a5398589681d -
Branch / Tag:
refs/tags/v0.6.1 - Owner: https://github.com/si-23
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8712e194d5f12f66dea4d65a19e2a5398589681d -
Trigger Event:
push
-
Statement type:
File details
Details for the file py_import_cycles-0.6.0-py3-none-any.whl.
File metadata
- Download URL: py_import_cycles-0.6.0-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb9085a5841a9c74c67c520bd5cc39258bccf5231fd80076562705b0e77338b8
|
|
| MD5 |
988e615d915da968e94a04f5b9108f58
|
|
| BLAKE2b-256 |
cccfad6df510a1f0c1010482e98c47947b8efa408620ff9cb97c057885dd2553
|
Provenance
The following attestation bundles were made for py_import_cycles-0.6.0-py3-none-any.whl:
Publisher:
publish.yml on si-23/py-import-cycles
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
py_import_cycles-0.6.0-py3-none-any.whl -
Subject digest:
bb9085a5841a9c74c67c520bd5cc39258bccf5231fd80076562705b0e77338b8 - Sigstore transparency entry: 1305507575
- Sigstore integration time:
-
Permalink:
si-23/py-import-cycles@8712e194d5f12f66dea4d65a19e2a5398589681d -
Branch / Tag:
refs/tags/v0.6.1 - Owner: https://github.com/si-23
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8712e194d5f12f66dea4d65a19e2a5398589681d -
Trigger Event:
push
-
Statement type: