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

Uploaded Source

File details

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

File metadata

  • Download URL: py_import_cycles-0.5.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b8a830578e1107044015db6d5d1a823923c6fdd4eb147ce0e5df452bf422502c
MD5 6a4d5e99920cead10edf1e1a3d368f18
BLAKE2b-256 4568b1d1ffb382166008def314701a3a069d20a36df690fe4bcfe53a43c401b7

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