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

Uploaded Source

File details

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

File metadata

  • Download URL: py_import_cycles-0.4.1.tar.gz
  • Upload date:
  • Size: 12.6 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.4.1.tar.gz
Algorithm Hash digest
SHA256 91b3b77c7884d06f7ae7fd88fc5a2484a1a9ba94ffdca9740ae630ebded90a0f
MD5 e0138c53f9433b273760da355b7c09dc
BLAKE2b-256 3104c9f068b3bca79189c7ffc6ac3cfae2829c2541ea3ce9c08495f7b9db6ac0

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