{ "info": { "author": "Brian Beffa", "author_email": "brbsix@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: POSIX", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.0", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3 :: Only", "Topic :: Software Development", "Topic :: System :: Filesystems", "Topic :: Utilities" ], "description": "About\n=====\n\nThis module is sort of like os.walk on steroids. It was created to allow the safe use of command-line path arguments in your Python scripts. For instance, say the user passes in several files and directories as arguments and you want to return a sorted list of files within said directories meeting specific access, extension, and/or size criteria. Or perhaps the user passes in a list of files and you want to verify that all of the files meet the necessary criteria before using them.\n\n\nInstallation\n============\n\n::\n\n pip3 install batchpath\n\nThe :code:`batchpath` module is known to be compatible with Python 3.\n\nNOTE: This module uses os.walk(), but will use scandir's significantly faster implementation if it is available. Consider installing the **scandir** module.\n\n\nUsage\n=====\n\n.. code:: python\n\n from batchpath import GeneratePaths()\n\n gp = GeneratePaths()\n paths = ['/path/to/directory']\n files = gp.files(paths, access=os.R_OK, extensions=['conf','txt'], minsize=0, recursion=True)\n\n\n.. code:: python\n\n from batchpath import VerifyPaths()\n\n vp = VerifyPaths()\n paths = ['/path/to/file', '/path/to/dir', '/path/to/other']\n verification_status = vp.all(paths, access=os.R_OK)\n invalid_paths = vp.failures\n\n\nLicense\n=======\n\nCopyright (c) 2015 Six (brbsix@gmail.com).\n\nLicensed under the GPLv3 license.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/brbsix/python-batchpath", "keywords": "os.walk,pathnames,paths", "license": "GPLv3", "maintainer": null, "maintainer_email": null, "name": "batchpath", "package_url": "https://pypi.org/project/batchpath/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/batchpath/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/brbsix/python-batchpath" }, "release_url": "https://pypi.org/project/batchpath/0.2/", "requires_dist": null, "requires_python": null, "summary": "Developer utility to generate and verify pathnames", "version": "0.2" }, "last_serial": 1408178, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "d3b10990e3a34d5c18e0504971740d78", "sha256": "deece446c75e39c69f00cf3330b34af5bdf75ca19accd821b24cbe3e10b148bd" }, "downloads": -1, "filename": "batchpath-0.2-py3-none-any.whl", "has_sig": true, "md5_digest": "d3b10990e3a34d5c18e0504971740d78", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5201, "upload_time": "2015-02-03T18:19:40", "url": "https://files.pythonhosted.org/packages/54/de/1d839e02d93a307726e7fe2c6b0c1e001583d9d9fb2a95c3d6dc08ba8cc1/batchpath-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c62ab11ff15aa9687add9ca77e1f4451", "sha256": "e9d6c15d9ec93a2f71cc098502c7efa06b54a49c174998379083ff17b4733086" }, "downloads": -1, "filename": "batchpath-0.2.tar.gz", "has_sig": true, "md5_digest": "c62ab11ff15aa9687add9ca77e1f4451", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3374, "upload_time": "2015-02-03T18:19:55", "url": "https://files.pythonhosted.org/packages/6e/1e/813de6bd550ece4456da73b2d8b20f68a1c78d422deac89fb1a5b65d1dba/batchpath-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d3b10990e3a34d5c18e0504971740d78", "sha256": "deece446c75e39c69f00cf3330b34af5bdf75ca19accd821b24cbe3e10b148bd" }, "downloads": -1, "filename": "batchpath-0.2-py3-none-any.whl", "has_sig": true, "md5_digest": "d3b10990e3a34d5c18e0504971740d78", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5201, "upload_time": "2015-02-03T18:19:40", "url": "https://files.pythonhosted.org/packages/54/de/1d839e02d93a307726e7fe2c6b0c1e001583d9d9fb2a95c3d6dc08ba8cc1/batchpath-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c62ab11ff15aa9687add9ca77e1f4451", "sha256": "e9d6c15d9ec93a2f71cc098502c7efa06b54a49c174998379083ff17b4733086" }, "downloads": -1, "filename": "batchpath-0.2.tar.gz", "has_sig": true, "md5_digest": "c62ab11ff15aa9687add9ca77e1f4451", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3374, "upload_time": "2015-02-03T18:19:55", "url": "https://files.pythonhosted.org/packages/6e/1e/813de6bd550ece4456da73b2d8b20f68a1c78d422deac89fb1a5b65d1dba/batchpath-0.2.tar.gz" } ] }