{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/3"},{"label":"Filesystems","url":"https://skillfed.io/packages/category/system-filesystems"}],"enrichment":{"capability":"Backport of Python's standard pathlib module for older Python versions, providing object-oriented filesystem path manipulation.","skillfed_tags":["legacy-python","backport"],"use_cases":["Migrate legacy Python 2.7 codebases to use modern pathlib syntax before upgrading to Python 3.","Maintain a single codebase across Python 2.7 and early Python 3.x versions using consistent path APIs.","Use pathlib's object-oriented path interface in projects that must support Python 3.5 or 3.6.","Backport pathlib features to environments where the standard library version is unavailable or outdated."],"what_it_does":"pathlib2 is a backport of Python's standard pathlib module, designed to bring modern path-handling APIs to older Python versions that predate pathlib's inclusion in the standard library. It provides an object-oriented interface for working with filesystem paths across platforms, replacing string-based path manipulation with a cleaner, more intuitive API. The package depends on six, scandir, and typing to maintain compatibility across Python 2.7 and early Python 3 releases.\n\nThe backport tracks the standard library's pathlib implementation, so features added to the standard module are eventually available through pathlib2 on older Python versions. However, it carries a known limitation: on Windows with Python 2.7, non-ASCII filename characters may be silently corrupted due to the platform's filesystem encoder having poor Unicode support. Development now occurs primarily in the Python standard library itself, making this package a maintenance-light compatibility shim rather than an actively developed project.","worth_installing":"No, unless you are maintaining legacy Python 2.7 or very early Python 3 code. Modern Python versions include pathlib in the standard library; use that instead. The package is stable and permissively licensed, but dormant maintenance and the availability of built-in pathlib make it unnecessary for new projects."},"id":"pathlib2","links":{"html":"https://skillfed.io/packages/pathlib2","md":"https://skillfed.io/packages/pathlib2.md","pypi":"https://pypi.org/project/pathlib2/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2022-02-10","license_spdx":null,"license_treatment":"permissive","name":"pathlib2","python_support":"unspecified","summary":"Object-oriented filesystem paths"},"popularity":{"monthly_downloads":4426297,"position":2304,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.3.7.post1"}
