{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/3"}],"enrichment":{"capability":"Extends Python's pathlib.Path with convenience attributes and methods for file operations, path manipulation, searching, and atomic writes.","skillfed_tags":["filesystem-utilities","path-manipulation"],"use_cases":["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."],"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.\n\nThe 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.","worth_installing":"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\u2014especially atomic writes and path attribute shortcuts\u2014without forcing you to learn a new API. Install it if you work with paths frequently and want to reduce boilerplate."},"id":"pathlib-mate","links":{"html":"https://skillfed.io/packages/pathlib-mate","md":"https://skillfed.io/packages/pathlib-mate.md","pypi":"https://pypi.org/project/pathlib-mate/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-01-22","license_spdx":null,"license_treatment":"permissive","name":"pathlib-mate","python_support":"supports_current","summary":"An extended and more powerful pathlib."},"popularity":{"monthly_downloads":1887696,"position":3462,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.3.2"}
