Skip to main content

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 ast and
  • 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 --version
  • python3 -m py_import_cycles --help
  • python3 -m py_import_cycles --packages /path/to/project/package

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_import_cycles-0.5.2.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_import_cycles-0.5.2-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file py_import_cycles-0.5.2.tar.gz.

File metadata

  • Download URL: py_import_cycles-0.5.2.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.6

File hashes

Hashes for py_import_cycles-0.5.2.tar.gz
Algorithm Hash digest
SHA256 f1ae388c12e8cfbb0586405110574aff85ab9d570111319cc31ef4f57659264c
MD5 bd14af570684ea37ef5bc6789aa97112
BLAKE2b-256 8e743c84a5fa699e0ac1b8a5c4e1ca36dd3afc62aa7ff2e3b25ac6dc0eaf7bf5

See more details on using hashes here.

File details

Details for the file py_import_cycles-0.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for py_import_cycles-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3987d7980b3e946c34153743a3cfdc599e3020bd8a04823099ff1e87bc97efe
MD5 5935c46afbc5d166a5aa2d9a2e1351cf
BLAKE2b-256 e7c92877eac8d20e1d12564bfcac1d28c12d95d1068c5cbd94af3a182c4c4ba4

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_import_cycles-0.5.2-py3-none-any.whl:

Publisher: publish.yml on si-23/py-import-cycles

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page