{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/3"}],"enrichment":{"capability":"Detects import cycles in Python projects by walking packages, collecting modules, extracting imports via ast, and computing cycles to identify structural weak points.","skillfed_tags":["static-analysis","code-quality","architecture"],"use_cases":["Check a new or refactored codebase for circular imports before merging to catch structural problems early.","Audit legacy packages to identify and prioritize which import cycles to break during a refactoring effort.","Integrate into CI/CD to fail builds when new circular imports are introduced.","Analyze third-party packages you're considering adopting to assess their internal architecture quality."],"what_it_does":"py-import-cycles is a command-line tool that scans Python packages to find circular import dependencies. It uses Python's ast module to parse import statements and networkx to compute cycles, helping developers identify architectural problems where modules depend on each other in a loop. The tool walks the file tree of a given package, collects all Python modules, and reports any cycles it finds\u2014useful for spotting structural weak points before they cause runtime issues or maintenance headaches.\n\nThe package is lightweight and straightforward: it doesn't integrate with Python's module finder or loader, so it analyzes only what's on disk. It's designed as a static analysis tool you run from the command line against your own codebase, making it a simple addition to code review or CI workflows when you want to check for import cycles without running the code.","worth_installing":"Yes, if you need to detect import cycles in Python projects. The tool is actively maintained, has no known vulnerabilities, and imposes minimal install friction. It's most useful for developers doing code reviews, refactoring, or enforcing architectural standards. Not necessary if your project already uses a linter or type checker that catches circular imports, or if import cycles aren't a concern in your workflow."},"id":"py-import-cycles","links":{"html":"https://skillfed.io/packages/py-import-cycles","md":"https://skillfed.io/packages/py-import-cycles.md","pypi":"https://pypi.org/project/py-import-cycles/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-04-15","license_spdx":null,"license_treatment":"permissive","name":"py-import-cycles","python_support":"supports_current","summary":"Detect import cycles in Python projects"},"popularity":{"monthly_downloads":149880,"position":10980,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.6.2"}
