{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/4"}],"enrichment":{"capability":"Finds your project root directory and configures Python paths, working directories, and environment variables in one call, so scripts work consistently regardless of where they're run from.","skillfed_tags":["project-setup","path-management"],"use_cases":["Run Jupyter notebooks from nested subdirectories while importing from the project root","Execute scripts from any directory without path-related failures or complex ../../../ imports","Automatically load environment variables from .env without manual configuration in each script","Set up CI/CD pipelines where scripts may be invoked from varying working directories","Simplify data science projects where data paths and module imports need consistent root references"],"what_it_does":"pyrootutils solves the common problem of Python scripts failing or requiring complex relative imports when run from different working directories. It locates your project root by searching for a marker file (like .git, .project-root, or pyproject.toml) and then configures your Python environment in one step: setting PYTHONPATH so imports work relative to the root, changing the working directory, loading .env variables via its python-dotenv dependency, and optionally setting a PROJECT_ROOT environment variable.\n\nThe package is designed for developers who want scripts and notebooks to work consistently regardless of where they're executed from. It's particularly useful in projects with nested directories, notebooks in subdirectories, or teams running scripts from different locations. The setup is a single function call, making it lightweight and easy to integrate into existing projects.","worth_installing":"Yes, if you work with multi-directory Python projects, notebooks, or scripts that need to run from different locations. The single-function setup and low install friction make it a practical utility. The active maintenance and zero known vulnerabilities support confidence in use. The lack of recent releases is not a concern given the package's simplicity and stable scope."},"id":"pyrootutils","links":{"html":"https://skillfed.io/packages/pyrootutils","md":"https://skillfed.io/packages/pyrootutils.md","pypi":"https://pypi.org/project/pyrootutils/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2022-06-09","license_spdx":null,"license_treatment":"permissive","name":"pyrootutils","python_support":"supports_current","summary":"Simple package for easy project root setup"},"popularity":{"monthly_downloads":1361255,"position":4002,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.0.4"}
