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.0.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.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

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

Hashes for py_import_cycles-0.6.0.tar.gz
Algorithm Hash digest
SHA256 a15281567566a3d6aa14712bc70b51b1ae34f3169a68d13f10f2a50a1cedb894
MD5 ac112083aaef523394968a443cdfc834
BLAKE2b-256 165e0caa6446f5751aec17bc91c38a9f6c261f46dedd953cc23f8d2bd1f6205d

See more details on using hashes here.

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

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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for py_import_cycles-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb9085a5841a9c74c67c520bd5cc39258bccf5231fd80076562705b0e77338b8
MD5 988e615d915da968e94a04f5b9108f58
BLAKE2b-256 cccfad6df510a1f0c1010482e98c47947b8efa408620ff9cb97c057885dd2553

See more details on using hashes here.

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

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