
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
The old pathlib <https://web.archive.org/web/20181106215056/https://bitbucket.org/pitrou/pathlib/>
_
module on bitbucket is no longer maintained.
The goal of pathlib2 is to provide a backport of
standard pathlib <http://docs.python.org/dev/library/pathlib.html>
_
module which tracks the standard library module,
so all the newest features of the standard pathlib can be
used also on older Python versions.
Standalone releases are available on PyPI: http://pypi.python.org/pypi/pathlib2/
The main development takes place in the Python standard library: see
the Python developer's guide <http://docs.python.org/devguide/>
.
In particular, new features should be submitted to the
Python bug tracker <http://bugs.python.org/>
.
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 <https://github.com/jazzband/pathlib2/issues>
_.
Refer to the
standard pathlib <http://docs.python.org/dev/library/pathlib.html>
_
documentation.
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 <https://github.com/jazzband/pathlib2/issues/56>
_ for more details.
.. |github| image:: https://github.com/jazzband/pathlib2/actions/workflows/python-package.yml/badge.svg :target: https://github.com/jazzband/pathlib2/actions/workflows/python-package.yml :alt: github
.. |codecov| image:: https://codecov.io/gh/jazzband/pathlib2/branch/develop/graph/badge.svg :target: https://codecov.io/gh/jazzband/pathlib2 :alt: codecov
.. |jazzband| image:: https://jazzband.co/static/img/badge.svg :alt: Jazzband :target: https://jazzband.co/
FAQs
Object-oriented filesystem paths
We found that pathlib2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.