{ "info": { "author": "Ken Kundert", "author_email": "extended_pathlib@nurdletech.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Natural Language :: English", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Utilities" ], "description": "Extended PathLib\n================\n\nThis package monkey-patches some useful extensions on to pathlib from the Python \nstandard library. These extensions are only supported on Posix systems.\n\nOnce installed, you can simply import Path from extended_pathlib just as you \nwould from pathlib, and use the new functionality::\n\n >>> from extended_pathlib import Path\n\n >>> tmp = Path('/tmp')\n >>> tmp.is_readable()\n True\n\n\nInstallation\n------------\n\nUse 'pip3 install extended_pathlib' to install. Requires Python2.7 or Python3.3 \nor better.\n\n.. image:: https://travis-ci.org/KenKundert/extended_pathlib.svg?branch=master\n :target: https://travis-ci.org/KenKundert/extended_pathlib\n\n\nFile Types\n----------\n\nis_readable\n~~~~~~~~~~~\n\nReturns True if the given path points to an existing file or directory that is \nreadable.\n\n >>> Path('/usr/bin/python').is_readable()\n True\n\nis_writable\n~~~~~~~~~~~\n\nReturns True if the given path points to an existing file or directory that is \nwritable.\n\n >>> Path('/usr/bin/python').is_writable()\n False\n\nis_executable\n~~~~~~~~~~~~~\n\nReturns True if the given path points to an existing file or directory that is \nexecutable.\n\n >>> Path('/usr/bin/python').is_executable()\n True\n\nis_hidden\n~~~~~~~~~\n\nReturns True if the given path points to an existing file or directory that is \nhidden (starts with '.').\n\n >>> Path('/usr/bin/python').is_hidden()\n False\n\n\npath_from\n~~~~~~~~~\n\nReturns relative path from start as a path object.\nThis differs from Path.relative_to() in that relative_to() will not return\na path that starts with '..'.\n\n >>> cwd = Path('.')\n >>> cwd.path_from('..')\n PosixPath('tests')\n\n\nsans_ext\n~~~~~~~~\n\nRemoves the file extension.\nThis differs from Path.stem, which returns the final path component\nstripped of its extension. This returns the full path stripped\nof its extension.\n\n >>> Path('a/b.c').sans_ext()\n PosixPath('a/b')\n\n\nwrite_bytes\n~~~~~~~~~~~\n\nWrites a binary file.\nThis is the standard pathlib write_bytes() that was introduced in Python3.5, but \nback-ported to earlier versions.\n\n\nwrite_text\n~~~~~~~~~~\n\nReads a binary file.\nThis is the standard pathlib write_text() that was introduced in Python3.5, but \nback-ported to earlier versions.\n\n\nread_bytes\n~~~~~~~~~~\n\nReads a binary file.\nThis is the standard pathlib read_bytes() that was introduced in Python3.5, but \nback-ported to earlier versions.\n\n\nread_text\n~~~~~~~~~\n\nReads a text file.\nThis is the standard pathlib read_text() that was introduced in Python3.5, but \nback-ported to earlier versions.\n\n\nexpanduser\n~~~~~~~~~~\n\nExpand leading tilde (~) in paths.\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/kenkundert/extended_pathlib/tarball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://nurdletech.com/linux-utilities/extended_pathlib", "keywords": "extended", "license": "GPLv3+", "maintainer": "", "maintainer_email": "", "name": "extended_pathlib", "package_url": "https://pypi.org/project/extended_pathlib/", "platform": "", "project_url": "https://pypi.org/project/extended_pathlib/", "project_urls": { "Download": "https://github.com/kenkundert/extended_pathlib/tarball/master", "Homepage": "http://nurdletech.com/linux-utilities/extended_pathlib" }, "release_url": "https://pypi.org/project/extended_pathlib/0.4.0/", "requires_dist": null, "requires_python": "", "summary": "shell library", "version": "0.4.0" }, "last_serial": 2545281, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "c1563c28612af796c6e7ea8425531d9c", "sha256": "0cd1b1e5725787cbd2e6028900530e3378dd5895da9536d84f93fcfbb35477d3" }, "downloads": -1, "filename": "extended_pathlib-0.0.0.tar.gz", "has_sig": false, "md5_digest": "c1563c28612af796c6e7ea8425531d9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2916, "upload_time": "2016-09-27T06:23:18", "url": "https://files.pythonhosted.org/packages/de/d1/573a2d8f83bcba26f4c2461f96d81174df4d4214223272c5fa8cb1810fac/extended_pathlib-0.0.0.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "d5addfc598b49be7e479646ec82d5ba7", "sha256": "525b83efd00655bb9b7d20b3b757361fad90e0756b3a00229a8c9dc9cc50a6ec" }, "downloads": -1, "filename": "extended_pathlib-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d5addfc598b49be7e479646ec82d5ba7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3295, "upload_time": "2016-11-01T22:33:43", "url": "https://files.pythonhosted.org/packages/af/b4/e806a5ce29d5e9599c475bc85e943b76b968614bb1ff97f2c21e82a26f0a/extended_pathlib-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "5c667c918a0c0de1bae2b731d0053d38", "sha256": "4df7a4e80b5010785a7b1214ba887068dbe07dceb66a728282076aac391dac3f" }, "downloads": -1, "filename": "extended_pathlib-0.2.0.tar.gz", "has_sig": false, "md5_digest": "5c667c918a0c0de1bae2b731d0053d38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3489, "upload_time": "2016-11-02T03:56:09", "url": "https://files.pythonhosted.org/packages/be/14/96f4f3283bf0d8badb4c60efce08ffc5f344b05e2c13f340500c2807e3dd/extended_pathlib-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "ec96f2f57c0c3ac2d1c1c3f32bf358c7", "sha256": "6c5eaab84b18aa3f384eb010eac8bbad799f8e38153017b70d50f220203e9734" }, "downloads": -1, "filename": "extended_pathlib-0.3.0.tar.gz", "has_sig": false, "md5_digest": "ec96f2f57c0c3ac2d1c1c3f32bf358c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3666, "upload_time": "2016-11-02T21:07:46", "url": "https://files.pythonhosted.org/packages/15/c0/cfe146bf3b4f12d435f1a39eefc6472f90b1f66c298d0fd22bf9efcefb5a/extended_pathlib-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "ded657ec7e6d1a650cdf7d4e23af307e", "sha256": "c718cacfc7c02c6530936603dcf7496b9a5c0349b4410d0c7d1ab12dd4587e22" }, "downloads": -1, "filename": "extended_pathlib-0.4.0.tar.gz", "has_sig": false, "md5_digest": "ded657ec7e6d1a650cdf7d4e23af307e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3715, "upload_time": "2016-12-30T03:09:35", "url": "https://files.pythonhosted.org/packages/12/67/317952e6fd4bc76006cd4b4ddc0e277b6a1dcadc4d63bd74ab2fc26989c3/extended_pathlib-0.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ded657ec7e6d1a650cdf7d4e23af307e", "sha256": "c718cacfc7c02c6530936603dcf7496b9a5c0349b4410d0c7d1ab12dd4587e22" }, "downloads": -1, "filename": "extended_pathlib-0.4.0.tar.gz", "has_sig": false, "md5_digest": "ded657ec7e6d1a650cdf7d4e23af307e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3715, "upload_time": "2016-12-30T03:09:35", "url": "https://files.pythonhosted.org/packages/12/67/317952e6fd4bc76006cd4b4ddc0e277b6a1dcadc4d63bd74ab2fc26989c3/extended_pathlib-0.4.0.tar.gz" } ] }