pathlib2


Namepathlib2 JSON
Version 2.3.7.post1 PyPI version JSON
download
home_pagehttps://github.com/jazzband/pathlib2
SummaryObject-oriented filesystem paths
upload_time2022-02-10 18:01:09
maintainer
docs_urlNone
authorMatthias C. M. Troffaes
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            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.

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 <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>`_.

Documentation
-------------

Refer to the
`standard pathlib <http://docs.python.org/dev/library/pathlib.html>`_
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 <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/



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jazzband/pathlib2",
    "name": "pathlib2",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Matthias C. M. Troffaes",
    "author_email": "matthias.troffaes@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/31/51/99caf463dc7c18eb18dad1fffe465a3cf3ee50ac3d1dccbd1781336fe9c7/pathlib2-2.3.7.post1.tar.gz",
    "platform": "",
    "description": "The `old pathlib <https://web.archive.org/web/20181106215056/https://bitbucket.org/pitrou/pathlib/>`_\r\nmodule on bitbucket is no longer maintained.\r\nThe goal of pathlib2 is to provide a backport of\r\n`standard pathlib <http://docs.python.org/dev/library/pathlib.html>`_\r\nmodule which tracks the standard library module,\r\nso all the newest features of the standard pathlib can be\r\nused also on older Python versions.\r\n\r\nDownload\r\n--------\r\n\r\nStandalone releases are available on PyPI:\r\nhttp://pypi.python.org/pypi/pathlib2/\r\n\r\nDevelopment\r\n-----------\r\n\r\nThe main development takes place in the Python standard library: see\r\nthe `Python developer's guide <http://docs.python.org/devguide/>`_.\r\nIn particular, new features should be submitted to the\r\n`Python bug tracker <http://bugs.python.org/>`_.\r\n\r\nIssues that occur in this backport, but that do not occur not in the\r\nstandard Python pathlib module can be submitted on\r\nthe `pathlib2 bug tracker <https://github.com/jazzband/pathlib2/issues>`_.\r\n\r\nDocumentation\r\n-------------\r\n\r\nRefer to the\r\n`standard pathlib <http://docs.python.org/dev/library/pathlib.html>`_\r\ndocumentation.\r\n\r\nKnown Issues\r\n------------\r\n\r\nFor historic reasons, pathlib2 still uses bytes to represent file paths internally.\r\nUnfortunately, on Windows with Python 2.7, the file system encoder (``mcbs``)\r\nhas only poor support for non-ascii characters,\r\nand can silently replace non-ascii characters without warning.\r\nFor example, ``u'\u0442\u0435\u0441\u0442'.encode(sys.getfilesystemencoding())`` results in ``????``\r\nwhich is obviously completely useless.\r\n\r\nTherefore, on Windows with Python 2.7, until this problem is fixed upstream,\r\nunfortunately you cannot rely on pathlib2 to support the full unicode range for filenames.\r\nSee `issue #56 <https://github.com/jazzband/pathlib2/issues/56>`_ for more details.\r\n\r\n.. |github| image:: https://github.com/jazzband/pathlib2/actions/workflows/python-package.yml/badge.svg\r\n   :target: https://github.com/jazzband/pathlib2/actions/workflows/python-package.yml\r\n   :alt: github\r\n\r\n.. |codecov| image:: https://codecov.io/gh/jazzband/pathlib2/branch/develop/graph/badge.svg\r\n    :target: https://codecov.io/gh/jazzband/pathlib2\r\n    :alt: codecov\r\n\r\n.. |jazzband| image:: https://jazzband.co/static/img/badge.svg\r\n   :alt: Jazzband\r\n   :target: https://jazzband.co/\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Object-oriented filesystem paths",
    "version": "2.3.7.post1",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "d38180feae103da9b2cf41e5d0869ee9",
                "sha256": "5266a0fd000452f1b3467d782f079a4343c63aaa119221fbdc4e39577489ca5b"
            },
            "downloads": -1,
            "filename": "pathlib2-2.3.7.post1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d38180feae103da9b2cf41e5d0869ee9",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 18027,
            "upload_time": "2022-02-10T18:01:07",
            "upload_time_iso_8601": "2022-02-10T18:01:07.751558Z",
            "url": "https://files.pythonhosted.org/packages/09/eb/4af4bcd5b8731366b676192675221c5324394a580dfae469d498313b5c4a/pathlib2-2.3.7.post1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "a8a4d8f897e709006a4586cf2102edc6",
                "sha256": "9fe0edad898b83c0c3e199c842b27ed216645d2e177757b2dd67384d4113c641"
            },
            "downloads": -1,
            "filename": "pathlib2-2.3.7.post1.tar.gz",
            "has_sig": false,
            "md5_digest": "a8a4d8f897e709006a4586cf2102edc6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 211190,
            "upload_time": "2022-02-10T18:01:09",
            "upload_time_iso_8601": "2022-02-10T18:01:09.996903Z",
            "url": "https://files.pythonhosted.org/packages/31/51/99caf463dc7c18eb18dad1fffe465a3cf3ee50ac3d1dccbd1781336fe9c7/pathlib2-2.3.7.post1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-02-10 18:01:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "jazzband",
    "github_project": "pathlib2",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "lcname": "pathlib2"
}
        
Elapsed time: 0.01557s