Skip to main content

Object-oriented filesystem paths

Project description

As of January 1 2020, this repository will no longer receive any further updates, as Python 2 is no longer supported.

The old pathlib module on bitbucket is in bugfix-only mode. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pathlib2-2.3.6.tar.gz (38.4 kB view details)

Uploaded Source

Built Distribution

pathlib2-2.3.6-py2.py3-none-any.whl (17.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pathlib2-2.3.6.tar.gz.

File metadata

  • Download URL: pathlib2-2.3.6.tar.gz
  • Upload date:
  • Size: 38.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for pathlib2-2.3.6.tar.gz
Algorithm Hash digest
SHA256 7d8bcb5555003cdf4a8d2872c538faa3a0f5d20630cb360e518ca3b981795e5f
MD5 e50a0cf94e406c5110b3aed535626e9e
BLAKE2b-256 df16e9d6bcf1aed52a55bc1696324ab22586716053b3e97b85266e0f3ad36bae

See more details on using hashes here.

File details

Details for the file pathlib2-2.3.6-py2.py3-none-any.whl.

File metadata

  • Download URL: pathlib2-2.3.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for pathlib2-2.3.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3a130b266b3a36134dcc79c17b3c7ac9634f083825ca6ea9d8f557ee6195c9c8
MD5 fb0a1284f93e0e3dd4ada300b29e1ac9
BLAKE2b-256 7667dc02c72177ec79f0176e5bf9921e9c1745a381ed556afb3b3ecc2bb8ba2e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page