{"categories":[{"label":"Build Tools","url":"https://skillfed.io/packages/category/software-development-build-tools/3"}],"enrichment":{"capability":"Automatically converts relative imports to absolute imports in Python source files, with optional support for src-layout projects and pre-commit integration.","skillfed_tags":["import-refactoring","pre-commit-hook"],"use_cases":["Enforce absolute imports across a codebase as a pre-commit hook to maintain consistent import style.","Refactor code that uses relative imports to absolute imports for better IDE support.","Handle src-layout projects by specifying `--application-directories` to point to the correct root.","Batch-convert relative imports in legacy Python code during a modernization effort."],"what_it_does":"absolufy-imports is a command-line tool and pre-commit hook that automatically rewrites relative imports as absolute imports. It operates on individual Python files and integrates into pre-commit workflows to enforce absolute import style across a codebase.\n\nThe tool supports configuration for non-standard layouts via the `--application-directories` flag, which lets you specify where your package root lives. It also offers a `--never` flag to reverse the operation and convert absolute imports back to relative. With no runtime dependencies, it installs quickly and runs as a standalone utility or integrated into your version control hooks.","worth_installing":"Yes, if you need to standardize imports and are willing to accept that the project is no longer maintained. The tool is simple, has no dependencies, and works for its narrow purpose on Python 3.6\u20133.10. Use it as part of a pre-commit workflow or one-time refactoring task, but do not expect updates for future Python versions."},"id":"absolufy-imports","links":{"html":"https://skillfed.io/packages/absolufy-imports","md":"https://skillfed.io/packages/absolufy-imports.md","pypi":"https://pypi.org/project/absolufy-imports/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2022-01-20","license_spdx":null,"license_treatment":"permissive","name":"absolufy-imports","python_support":"supports_current","summary":"A tool to automatically replace relative imports with absolute ones."},"popularity":{"monthly_downloads":317027,"position":7666,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.1"}
