path
A module wrapper for os.path
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- Low friction installation with no runtime dependencies.
- Active maintenance as of 2026-04-13, last release 2025-07-27, and no known vulnerabilities.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; suitable for most projects.
last release 2025-07-27 (383 days) · last repo commit 2026-04-13 · 1,124 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,289,838 downloads/mo, #4,105 on PyPI
Alternatives
Verify before relying
from path import Path
d = Path("/home/user/bin")
for f in d.files("*.py"):
f.chmod(0o755)
foo_txt = Path("bar") / "foo.txt"- Whether Path objects remain fully backward-compatible with pathlib.Path in all use cases.
- Performance characteristics compared to pathlib for large directory traversals.
What it is and 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.
The package provides convenience methods beyond basic path operations—rmtree 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.
Use it for
- 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.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
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.
Install
path on PyPI
Before you install
Low friction installation with no runtime dependencies. Active maintenance as of 2026-04-13, last release 2025-07-27, and no known vulnerabilities.
Requires Python 3.9 or later.
License in practice
MIT license permits commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
from path import Path
d = Path("/home/user/bin")
for f in d.files("*.py"):
f.chmod(0o755)
foo_txt = Path("bar") / "foo.txt"
Verify before relying
- Whether Path objects remain fully backward-compatible with pathlib.Path in all use cases.
- Performance characteristics compared to pathlib for large directory traversals.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 383 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,289,838 / month, #4,105 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyTopic :: Software Development :: Libraries :: Python Modules |
Evidence: path-17.1.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “filesystem path objects”
- pathProvides Path objects that wrap filesystem operations as methods,…
- path.pyProvides Path objects that wrap filesystem operations as methods,…
- pathlibProvides object-oriented filesystem path handling as a backport for…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also path.py · pathtools · Unipath · fspath · dpath · pathlib-abc · pathlib · chialisp-stdlib · zipp · pathmagic