{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/6"}],"enrichment":{"capability":"Pycln finds and removes unused import statements from Python code, acting as a formatter that cleans up import sections automatically.","skillfed_tags":["import-cleanup","code-quality","cli-tool"],"use_cases":["Clean up import sections in a Python project before committing or deploying code.","Integrate into a pre-commit hook or CI pipeline to enforce import hygiene automatically.","Refactor legacy codebases where imports have accumulated over time without cleanup.","Configure project-wide import rules in pyproject.toml to standardize import handling across a team.","Use as a linting step in build tools like cibuildwheel or Poetry to validate import statements."],"what_it_does":"Pycln is a command-line formatter that scans Python source files to identify and remove unused import statements. It reads code using libcst for precise syntax tree analysis and can be configured via pyproject.toml or setup.cfg to apply project-specific rules like custom include/exclude patterns. The tool runs as a standalone CLI or as a Python module and integrates into CI/CD workflows and editor toolchains.\n\nThe package depends on typer for CLI argument handling, pyyaml for configuration parsing, pathspec for file matching, tomlkit for TOML manipulation, and libcst for abstract syntax tree operations. It targets modern Python versions (3.9 through 3.14) and is used by high-profile projects including Poetry, Rich, and pybind11.","worth_installing":"Yes. Pycln solves a real maintenance problem with low friction and permissive licensing. The aging maintenance status (297 days since last release) is a minor concern but not a blocker\u2014the repository is active, no vulnerabilities are known, and the tool is trusted by established projects. Install it if import cleanup is a workflow need."},"id":"pycln","links":{"html":"https://skillfed.io/packages/pycln","md":"https://skillfed.io/packages/pycln.md","pypi":"https://pypi.org/project/pycln/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-10-21","license_spdx":null,"license_treatment":"permissive","name":"pycln","python_support":"supports_current","summary":"A formatter for finding and removing unused import statements."},"popularity":{"monthly_downloads":349230,"position":7336,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.6.0"}
