{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/7"}],"enrichment":{"capability":"Provides Path objects that wrap filesystem operations as methods, allowing direct invocation of file operations on path instances with a str-compatible interface.","skillfed_tags":["filesystem-operations","path-manipulation"],"use_cases":["Write cleanup scripts that recursively remove files matching patterns with chmod and rmtree in a single fluent chain.","Pass Path objects directly to legacy APIs expecting string paths without intermediate str() conversions.","Traverse directory trees with glob patterns and apply batch file operations (permissions, deletion) in loops.","Subclass Path to add custom filesystem methods without managing OS-specific variants.","Use context managers to temporarily change working directory for a block of operations."],"what_it_does":"Path is a wrapper around os.path that implements filesystem paths as first-class objects with methods for common file operations. Instead of calling separate functions like os.chmod(path, mode), you invoke methods directly on Path instances: Path(path).chmod(mode). Path objects inherit from str, so they can be passed directly to APIs that expect string paths without explicit casting, unlike pathlib.Path objects which require PEP 519 PathLike support or manual str() conversion.\n\nThe package provides convenience methods beyond basic path operations\u2014rmtree for recursive deletion, remove_p for conditional removal, permissions properties, and sophisticated walk and TempDir behaviors. It supports path concatenation with the / operator, context managers for temporary directory changes, and glob patterns. Path has been actively maintained since 2003 and aims to offer compatibility with pathlib where possible, while remaining freely iterable as a PyPI package rather than bound to Python's release cycle.","worth_installing":"Yes. Path is stable, actively maintained, has no vulnerabilities, and zero runtime dependencies. Install it if you prefer method-based path operations and need str-compatible path objects for legacy APIs. If you're already using pathlib and don't need str compatibility or custom subclassing, pathlib is the standard choice; otherwise, Path offers genuine advantages for filesystem scripting."},"id":"path","links":{"html":"https://skillfed.io/packages/path","md":"https://skillfed.io/packages/path.md","pypi":"https://pypi.org/project/path/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-07-27","license_spdx":"MIT","license_treatment":"permissive","name":"path","python_support":"supports_current","summary":"A module wrapper for os.path"},"popularity":{"monthly_downloads":1289838,"position":4105,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"17.1.1"}
