{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/12"}],"enrichment":{"capability":"Provides Path objects that wrap filesystem operations as methods, letting you call chmod, walk, and glob directly on path instances rather than using os.path functions.","skillfed_tags":["filesystem-abstraction","path-manipulation"],"use_cases":["Writing cleanup or file-management scripts where you want readable path operations and direct method calls like f.chmod(0o755).","Building tools that work with filesystem hierarchies and need to pass paths to APIs that don't support PEP 519 PathLike objects.","Creating subclasses of Path to add custom filesystem behavior without managing OS-specific variants.","Migrating from os.path code to an object-oriented style while keeping paths compatible with existing string-based APIs.","Temporary directory and file operations using TempDir and context managers for cleaner resource management."],"what_it_does":"path.py wraps filesystem operations into a Path object that inherits from str, letting you call methods like chmod(), walk(), and glob() directly on path instances. Unlike pathlib, Path objects are strings themselves, so they pass directly to APIs that expect text paths without casting. The package provides convenience methods like rmtree() and remove_p() (remove if exists), plus properties like .permissions, all while maintaining a single unified Path class that works across operating systems.\n\nThe package has been in active development since 2003 and aims to be a drop-in replacement for pathlib.Path where possible, while remaining faster to iterate than the standard library. It's suitable for scripts, system tools, and applications that need readable, object-oriented path manipulation without the friction of converting to strings for legacy APIs.","worth_installing":"Yes. path.py is stable, actively maintained, has no known vulnerabilities, and installs with minimal friction. It's worth installing if you prefer object-oriented path operations and need paths to work as strings in legacy APIs\u2014a genuine advantage over pathlib. If you're already using pathlib and it meets your needs, there's no urgent reason to switch, but path.py is a solid alternative for new projects or codebases that value readability and string compatibility."},"id":"path-py","links":{"html":"https://skillfed.io/packages/path-py","md":"https://skillfed.io/packages/path-py.md","pypi":"https://pypi.org/project/path-py/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2020-07-27","license_spdx":null,"license_treatment":"permissive","name":"path.py","python_support":"supports_current","summary":"A module wrapper for os.path"},"popularity":{"monthly_downloads":429261,"position":6741,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"12.5.0"}
