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.0.tar.gz (13.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: py_import_cycles-0.5.0.tar.gz
  • Upload date:
  • Size: 13.3 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.0.tar.gz
Algorithm Hash digest
SHA256 883ddbf42ab370ee967379e5008991fca33d6abf3cdc5f218aba3cd56216a409
MD5 d28d7978c95779bb509362d07094e8ac
BLAKE2b-256 fde2f98606a2bd09621f310e847c5311d019f2110ff54a6ee6f01ddecc5c74c8

See more details on using hashes here.

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