pathlib-abc
Backport of pathlib ABCs
Decision gist · record as of 2026-08-14
Yes, if you need to implement custom path-like objects for non-local filesystems. The package has low install friction, no dependencies, and a permissive license. However, be aware that maintenance is aging (308 days since last release) and the ABCs are explicitly under active development—expect potential breaking changes before stabilization. Suitable for production use only if you can tolerate API changes or are willing to pin to a specific version.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- Low install friction with no runtime dependencies.
- Maintenance is aging—last release was 308 days ago—but the repository remains active with recent commits and the package is positioned as a backport of planned Python standard library functionality.
License · maintenance · safety
permissive license (permissive) — Licensed under the Python Software Foundation License, a permissive license that allows reproduction, modification, and distribution with attribution. No significant restrictions on use.
last release 2025-10-10 (308 days) · last repo commit 2025-10-10 · 33 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 21,589,369 downloads/mo, #996 on PyPI
Alternatives
Verify before relying
from pathlib_abc import JoinablePath, ReadablePath, WritablePath
class MyArchivePath(ReadablePath):
pass- Whether the three ABCs (JoinablePath, ReadablePath, WritablePath) are stable enough for production use or still subject to breaking changes before potential stdlib adoption.
- Timeline and likelihood of these ABCs being merged into the Python standard library, which would affect the package's long-term maintenance role.
What it is and what it does
pathlib-abc is a backport package that provides three abstract base classes for building path-like objects that mimic the pathlib.Path interface but work with non-local filesystems. The three ABCs are JoinablePath (for paths without I/O), ReadablePath (for read-capable paths), and WritablePath (for write-capable paths). This allows developers to implement custom path classes for archives, cloud storage, and other non-filesystem sources while maintaining API compatibility with standard pathlib conventions.
The package is explicitly positioned as a preview of functionality planned for a future Python release. Functional changes are made upstream in CPython and then backported here, meaning the package serves both as a testing ground for new pathlib features and as a compatibility layer for older Python versions once those features land in the standard library.
Use it for
- Implement path-like interfaces for ZIP or TAR archive contents without reimplementing pathlib from scratch.
- Build custom path classes for cloud storage services (S3, GCS) that behave like local filesystem paths.
- Create path abstractions for database-backed or network-accessible file hierarchies.
- Prototype and test new pathlib features before they are merged into the Python standard library.
- Maintain backward compatibility in libraries that use pathlib ABCs on Python versions before those ABCs are added to stdlib.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to implement custom path-like objects for non-local filesystems.
The package has low install friction, no dependencies, and a permissive license. However, be aware that maintenance is aging (308 days since last release) and the ABCs are explicitly under active development—expect potential breaking changes before stabilization. Suitable for production use only if you can tolerate API changes or are willing to pin to a specific version.
Install
pathlib-abc on PyPI
Before you install
Low install friction with no runtime dependencies. Maintenance is aging—last release was 308 days ago—but the repository remains active with recent commits and the package is positioned as a backport of planned Python standard library functionality.
Requires Python 3.9 or later.
License in practice
Licensed under the Python Software Foundation License, a permissive license that allows reproduction, modification, and distribution with attribution. No significant restrictions on use.
Quickstart
from pathlib_abc import JoinablePath, ReadablePath, WritablePath
class MyArchivePath(ReadablePath):
pass
Verify before relying
- Whether the three ABCs (JoinablePath, ReadablePath, WritablePath) are stable enough for production use or still subject to breaking changes before potential stdlib adoption.
- Timeline and likelihood of these ABCs being merged into the Python standard library, which would affect the package's long-term maintenance role.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 308 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 21,589,369 / month, #996 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: Python Software Foundation LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: pathlib_abc-0.5.2-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 › “pathlib abstract base classes”
- pathlib-abcProvides abstract base classes for implementing path-like objects…
- backports_abcProvides backports of abstract base classes (Generator, Coroutine,…
- cloudpathlibProvides pathlib-style classes for reading, writing, and managing…
Give your agent the search over MCP, or paste the wish link into any chat.
Similar packages
Provides backports of abstract base classes (Generator, Coroutine, Awaitable) and related inspect functions from collections.abc for older Python versions that lack them.
Provides object-oriented filesystem path handling as a backport for Python versions before 3.4, when pathlib became part of the standard library.
Provides File and Dir classes that wrap filesystem operations as ORM-like objects with properties and methods for reading, writing, traversing, and manipulating files and directories across multiple formats.
Universal Pathlib provides a pathlib.Path-like interface for accessing multiple backend filesystems—local, cloud storage, HTTP, SFTP, and others—through a unified API powered by fsspec.
Install it if you work with multiple storage backends or want to future-proof code that might move between local and cloud storage.
Provides a pathlib-compatible wrapper around zipfile objects, letting you navigate and read zip file contents using familiar Path-like syntax on any Python version.
Install it if you need to work with zip files using Path-like syntax.
Backport of Python 3.11 pathlib to Python 3.8+ with extensions like shutil wrappers (copy, rmtree, copytree) and new methods (append_suffix, replace_parts).