{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/16"}],"enrichment":{"capability":"Parses, classifies, and manipulates Python import statements as structured objects, enabling programmatic refactoring of imports in code.","skillfed_tags":["import-tooling","code-refactoring","legacy"],"use_cases":["Refactor import statements in a codebase to enforce consistent ordering and grouping conventions.","Build linting or formatting tools that need to parse and manipulate imports programmatically.","Classify imports by category (stdlib, third-party, local) to organize or validate import blocks.","Split comma-separated import statements into individual import lines for readability.","Sort imports according to custom rules (e.g., stdlib before third-party before application code)."],"what_it_does":"aspy.refactor_imports provides utilities to parse and manipulate Python import statements as first-class objects. It lets you construct import objects from strings, split multi-import statements into individual ones, sort imports according to custom rules, and classify imports by type (FUTURE, BUILTIN, THIRD_PARTY, APPLICATION). The package is built on a single runtime dependency, cached-property, and supports Python 3.7 through 3.10 on CPython and PyPy.\n\nThe package is now maintained in legacy status: the author has rewritten and renamed it for version 4 and beyond. Existing code using aspy.refactor_imports will continue to work, but new projects should consider the renamed version instead. It remains useful for codebases already integrated with it or for tools that need fine-grained control over import parsing and sorting.","worth_installing":"Yes, if you are maintaining or extending existing code that already uses aspy.refactor_imports. No, if starting a new project\u2014use the renamed version instead. The package is stable and has no known vulnerabilities, but it is in legacy maintenance mode with no active development beyond bug fixes."},"id":"aspy-refactor-imports","links":{"html":"https://skillfed.io/packages/aspy-refactor-imports","md":"https://skillfed.io/packages/aspy-refactor-imports.md","pypi":"https://pypi.org/project/aspy-refactor-imports/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2022-07-01","license_spdx":null,"license_treatment":"permissive","name":"aspy.refactor-imports","python_support":"supports_current","summary":"Utilities for refactoring imports in python-like syntax."},"popularity":{"monthly_downloads":122598,"position":11945,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.0.2"}
