Object-oriented filesystem paths
Project description
The old pathlib module on bitbucket is no longer maintained. The goal of pathlib2 is to provide a backport of standard pathlib module which tracks the standard library module, so all the newest features of the standard pathlib can be used also on older Python versions.
Download
Standalone releases are available on PyPI: http://pypi.python.org/pypi/pathlib2/
Development
The main development takes place in the Python standard library: see the Python developer’s guide. In particular, new features should be submitted to the Python bug tracker.
Issues that occur in this backport, but that do not occur not in the standard Python pathlib module can be submitted on the pathlib2 bug tracker.
Documentation
Refer to the standard pathlib documentation.
Known Issues
For historic reasons, pathlib2 still uses bytes to represent file paths internally. Unfortunately, on Windows with Python 2.7, the file system encoder (mcbs) has only poor support for non-ascii characters, and can silently replace non-ascii characters without warning. For example, u'тест'.encode(sys.getfilesystemencoding()) results in ???? which is obviously completely useless.
Therefore, on Windows with Python 2.7, until this problem is fixed upstream, unfortunately you cannot rely on pathlib2 to support the full unicode range for filenames. See issue #56 for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pathlib2-2.3.7.post1.tar.gz
.
File metadata
- Download URL: pathlib2-2.3.7.post1.tar.gz
- Upload date:
- Size: 211.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.8.2 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/2.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fe0edad898b83c0c3e199c842b27ed216645d2e177757b2dd67384d4113c641 |
|
MD5 | a8a4d8f897e709006a4586cf2102edc6 |
|
BLAKE2b-256 | 315199caf463dc7c18eb18dad1fffe465a3cf3ee50ac3d1dccbd1781336fe9c7 |
File details
Details for the file pathlib2-2.3.7.post1-py2.py3-none-any.whl
.
File metadata
- Download URL: pathlib2-2.3.7.post1-py2.py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.8.2 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/2.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5266a0fd000452f1b3467d782f079a4343c63aaa119221fbdc4e39577489ca5b |
|
MD5 | d38180feae103da9b2cf41e5d0869ee9 |
|
BLAKE2b-256 | 09eb4af4bcd5b8731366b676192675221c5324394a580dfae469d498313b5c4a |