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.6.2.tar.gz (37.2 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.6.2-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_import_cycles-0.6.2.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

Hashes for py_import_cycles-0.6.2.tar.gz
Algorithm Hash digest
SHA256 a69b642d76f8d4ad3265ba0aa4a990a720b9520e76087827ca139be640e418e0
MD5 2b8081d58026c5ed661b09fb12f98a90
BLAKE2b-256 1f441015777b515e98fca5430e721f72c98e65b1be63b7c17b49c193e0175340

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_import_cycles-0.6.2.tar.gz:

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.

File details

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

File metadata

File hashes

Hashes for py_import_cycles-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3fe8bf5f9cb946afc075dd17830dc0ae8635bb900b0b07c4919df46b0cd8800
MD5 299a8f2f95c4e8f8d852f85611f91360
BLAKE2b-256 814e9633dbdfeacd3162409f48458aafcc8cb3eb6bfa44d9f871ac068a02696f

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_import_cycles-0.6.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