Skip to main content

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.

Metadata

Release files for pathlib2 2.3.7.post1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pathlib2 2.3.7.post1
File Size Uploaded
pathlib2-2.3.7.post1.tar.gz 211.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pathlib2 2.3.7.post1
File Interpreter ABI Platform
pathlib2-2.3.7.post1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 229.2 kB

Release files / pathlib2-2.3.7.post1.tar.gz

Download URL pathlib2-2.3.7.post1.tar.gz
Size 211.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9fe0edad898b83c0c3e199c842b27ed216645d2e177757b2dd67384d4113c641
BLAKE2b-256 checksum
How to use checksums
315199caf463dc7c18eb18dad1fffe465a3cf3ee50ac3d1dccbd1781336fe9c7
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pathlib2-2.3.7.post1-py2.py3-none-any.whl

Download URL pathlib2-2.3.7.post1-py2.py3-none-any.whl
Size 18.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5266a0fd000452f1b3467d782f079a4343c63aaa119221fbdc4e39577489ca5b
BLAKE2b-256 checksum
How to use checksums
09eb4af4bcd5b8731366b676192675221c5324394a580dfae469d498313b5c4a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

2.3.7.post1 This release

2 release files

2.3.7

2 release files

2.3.6

2 release files

2.3.5

2 release files

2.3.4

2 release files

2.3.3

2 release files

2.3.2

2 release files

2.3.0

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.1

2 release files

2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page