{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/6"}],"enrichment":{"capability":"Finds your project's root directory and provides a `here()` function to construct file paths relative to that root, regardless of your current working directory.","skillfed_tags":["data-science","jupyter-friendly","path-resolution"],"use_cases":["Access data files in Jupyter notebooks without rewriting paths when you move notebooks between folders.","Write scripts that work correctly whether called from the project root or from a subdirectory.","Build reproducible workflows where file paths are absolute from project root, not relative to script location.","Manage projects with nested folder structures (data/, notebooks/, src/) without hardcoding relative paths.","Avoid path-related bugs when refactoring project structure\u2014only data location changes require path updates."],"what_it_does":"pyprojroot solves the working-directory problem in data science and research workflows: when you run scripts from different directories or use Jupyter notebooks (which change the working directory to the notebook's location), relative file paths break. This package finds your project root by looking for markers like .git, .here, or pyproject.toml, then provides a `here()` function that returns a pathlib.Path object for any file relative to that root. You call `here('data/myfile.csv')` instead of `../data/myfile.csv`, and the path stays valid no matter where you run the code from.\n\nThe package has two interfaces: an interactive `here()` function (inspired by the R `here` package) for quick use in notebooks, and a programmatic `find_root()` API (inspired by R's `rprojroot`) for more control over how the root is detected. It depends only on typing-extensions and installs with minimal friction. However, the project is abandoned\u2014last updated in March 2023\u2014so it receives no new features or maintenance, though the core functionality is stable.","worth_installing":"Yes, if you work in data science or research with Jupyter notebooks and project-oriented workflows. The package is small, stable, and solves a real pain point. However, the abandoned maintenance status means you should treat it as a utility you own\u2014no updates will arrive if Python or your environment changes significantly. For new projects, verify that the root-detection markers (like .git) align with your project structure."},"id":"pyprojroot","links":{"html":"https://skillfed.io/packages/pyprojroot","md":"https://skillfed.io/packages/pyprojroot.md","pypi":"https://pypi.org/project/pyprojroot/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2023-03-13","license_spdx":null,"license_treatment":"permissive","name":"pyprojroot","python_support":"supports_current","summary":"Project-oriented workflow in Python"},"popularity":{"monthly_downloads":348381,"position":7340,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.0"}
