Metadata-Version: 2.4
Name: py_import_cycles
Version: 0.5.2
Summary: Detect import cycles in Python projects
Project-URL: Homepage, https://github.com/si-23/py-import-cycles
Author-email: Simon Jess <simon86betz@yahoo.de>
License: MIT
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.12
Requires-Dist: graphviz
Requires-Dist: networkx
Description-Content-Type: text/markdown

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`
