Skip to main content

Detect import cycles in Python projects

Project description

py-import-cycles

Detect import cycles in Python projects.

This tool:

  • walks over given packages,
  • collects (file-based) Python modules,
  • extracts import statements and
  • computes cycles.

The import statements are collected from the outside via ast and this tool does not take any Python module finder or loader mechanisms into account. It is conceived for having an indication whether Python packages may have structural weak points.

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

Uploaded Source

File details

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

File metadata

  • Download URL: py_import_cycles-0.3.1.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for py_import_cycles-0.3.1.tar.gz
Algorithm Hash digest
SHA256 420a0aa1ba52502bbfe551d3ca1748b5a35abce55a03f8688e8e21ba05afdc6d
MD5 982499cf08c19eae52663055454e00f3
BLAKE2b-256 db0535d80e2ae803964456edfc17d3a7576ce4c0d0d6b31b70bc13391c46d6cf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page