{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/7"}],"enrichment":{"capability":"Finds your project root directory and configures Python path, working directory, and environment variables in one call, so scripts run consistently from anywhere.","skillfed_tags":["path-management","project-setup"],"use_cases":["Set up Jupyter notebooks in nested directories so they can import modules and access data relative to project root.","Run Python scripts from any working directory without hardcoding absolute paths or managing PYTHONPATH manually.","Load environment variables from .env automatically without explicit dotenv.load_dotenv() calls.","Standardize file access across a project by always resolving paths relative to a marker file like .git.","Configure CI/CD pipelines to run tests consistently regardless of the runner's working directory."],"what_it_does":"Rootutils solves a common Python development friction point: ensuring that imports, file paths, and environment variables work consistently regardless of where a script is executed from. It searches up the directory tree for a marker file (like .git, setup.py, or .project-root) to identify your project root, then configures Python's path, working directory, and environment in a single call. The package wraps python-dotenv to load .env files automatically.\n\nThe typical workflow is a one-liner at the top of your script or notebook: `rootutils.setup_root(__file__, dotenv=True, pythonpath=True)`. This is especially useful in notebooks nested in subdirectories, where relative imports and file access would otherwise require fragile path manipulation. The package is small, actively maintained, and requires only Python 3.7+.","worth_installing":"Yes. Rootutils is a lightweight, actively maintained utility that solves a genuine pain point in Python development. Low install friction, permissive license, no known vulnerabilities, and a straightforward API make it a safe choice for projects that need reliable project-root discovery and path configuration."},"id":"rootutils","links":{"html":"https://skillfed.io/packages/rootutils","md":"https://skillfed.io/packages/rootutils.md","pypi":"https://pypi.org/project/rootutils/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2023-05-19","license_spdx":null,"license_treatment":"permissive","name":"rootutils","python_support":"supports_current","summary":"Simple package for easy project root setup"},"popularity":{"monthly_downloads":222453,"position":9264,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.7"}
