The `path` library (formerly known as `path.py`) provides an object-oriented way to interact with file system paths, acting as a convenient wrapper around `os.path`. It implements path objects as first-class entities, allowing common file operations to be invoked directly on these objects. It aims to offer a superior experience to similar offerings, including Python's built-in `pathlib`, by providing more robust cross-platform abstractions and ease of subclassing. The current version is 17.1.1, with a regular release cadence as seen from its active GitHub development.
Verified import paths — ran on the pinned version, not inferred.
The PyPI package name changed from `path.py` to `path`, so the import path also changed. While `from path.py import Path` might work for older versions (<=12.x), the current stable version imports from `path`.
This quickstart demonstrates how to create Path objects, join paths, create directories, write to files, read from files, and clean up the created files and directories using the `path` library's object-oriented interface. It ensures cross-platform compatibility by abstracting OS-specific path separators.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.