pathlib-mate
An extended and more powerful pathlib.
Decision gist · record as of 2026-08-14
Yes. The package has no dependencies, low install friction, an MIT license, active maintenance, and no known vulnerabilities. It provides genuine convenience for filesystem work—especially atomic writes and path attribute shortcuts—without forcing you to learn a new API. Install it if you work with paths frequently and want to reduce boilerplate.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with no runtime dependencies.
- Actively maintained with recent commits; last release was January 2024.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute freely as long as you include the license notice.
last release 2024-01-22 (935 days) · last repo commit 2026-03-30 · 9 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,887,696 downloads/mo, #3,462 on PyPI
Alternatives
Verify before relying
pip install pathlib_mate
from pathlib import Path
from pathlib_mate import PathMate
p = Path("/Users/username/test.py")
print(p.basename) # test.py
print(p.fname) # test
print(p.ext) # .py
print(p.size_in_text) # human-readable size- Whether the atomic write implementation matches the boltons library's guarantees or has known edge cases.
- Performance characteristics when recursively searching large directory trees with custom filters.
What it is and what it does
pathlib_mate augments Python's standard pathlib.Path class with additional attributes and methods that make common filesystem operations more convenient. It adds shorthand accessors like `.basename`, `.fname`, `.ext`, `.dirpath` for path components, plus computed properties like `.size`, `.size_in_text`, `.md5`, `.sha256`, and `.sha512` for file metadata. It also provides methods to search directories by file type, extension, size, or custom filter; mutate paths via `.change()` to alter extensions, filenames, or directories; and perform file operations like atomic writes that guarantee either complete success or no change.
The package is designed for developers who work frequently with filesystem paths and want to avoid repetitive path construction and validation. It supports Python 3.7 through 3.12 and runs on macOS, Windows, and Unix without external dependencies. The atomic write feature is particularly useful when writing large amounts of data and you need to ensure the file is never left in a partial or corrupted state.
Use it for
- Batch rename or reorganize files by extension, size, or custom criteria across directory trees.
- Compute file hashes and metadata (size, creation time) without writing separate utility functions.
- Safely write configuration or data files with atomic operations to prevent corruption on failure.
- Generate directory statistics and identify large files or directories for cleanup or archival.
- Create backup archives with automatic naming and recursive directory handling.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package has no dependencies, low install friction, an MIT license, active maintenance, and no known vulnerabilities. It provides genuine convenience for filesystem work—especially atomic writes and path attribute shortcuts—without forcing you to learn a new API. Install it if you work with paths frequently and want to reduce boilerplate.
Install
pathlib-mate on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Actively maintained with recent commits; last release was January 2024.
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute freely as long as you include the license notice.
Quickstart
pip install pathlib_mate
from pathlib import Path
from pathlib_mate import PathMate
p = Path("/Users/username/test.py")
print(p.basename) # test.py
print(p.fname) # test
print(p.ext) # .py
print(p.size_in_text) # human-readable size
Verify before relying
- Whether the atomic write implementation matches the boltons library's guarantees or has known edge cases.
- Performance characteristics when recursively searching large directory trees with custom filters.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 935 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,887,696 / month, #3,462 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: pathlib_mate-1.3.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 › “path manipulation utilities”
- pathlib-mateExtends Python's pathlib.Path with convenience attributes and methods…
- pathlibProvides object-oriented filesystem path handling as a backport for…
- aiopathAsync-compatible reimplementation of Python's pathlib with awaitable…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities 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.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
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.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also pathlib3x · pathmagic · provide-dir · pathlib-abc · artifactory · atomicwrites · atomicwrites-homeassistant · handy-archives · path · pathlib2