{ "info": { "author": "Firecarrot", "author_email": "galerajimenez@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "wildcard\n========\n\nThis library is a fork of fnmatch\n(https://docs.python.org/2/library/fnmatch.html) to implement \\*\\*\n\n|PypiDownloads|\n\nAll documentation is identical to fnmatch except ``*`` , ``*`` is now\n``**`` and ``*`` only affects the particular directory\n\nhttps://docs.python.org/2/library/fnmatch.html\n\nInstall\n-------\n\n.. code:: bash\n\n pip install pywildcard\n\nLink pypi: https://pypi.python.org/pypi/pywildcard\n\nExamples\n--------\n\n.. code:: python\n\n import pywildcard\n dirs = ['hello/world.py', 'hello/world.pyc', 'hello/world/other/folder/example.py']\n pywildcard.filter(dirs, 'hello/*')\n # ['hello/world.py', 'hello/world.pyc']\n\n pywildcard.filter(dirs, 'hello/*.py')\n # ['hello/world.py']\n\n pywildcard.filter(dirs, 'hello/**')\n # ['hello/world.py', 'hello/world.pyc', 'hello/world/other/folder/example.py']\n\n pywildcard.filter(dirs, 'hello/**.py')\n # ['hello/world.py', 'hello/world/other/folder/example.py']\n\nDiffs fnmatch & pywildcard\n--------------------------\n\nfnmatch\n~~~~~~~\n\n.. code:: python\n\n import re\n import fnmatch\n\n urls = ['example/l1/l2/test3-1.py',\n 'example/l1/test2-1.py',\n 'example/l1/test2-2.py',\n 'example/l1/l2/l3/test4-1.py']\n\n regex = fnmatch.translate('example/*')\n # 'example\\\\/.*\\\\Z(?ms)'\n re.findall(regex, \"\\n\".join(urls))\n # return ['example/l1/l2/test3-1.py\\nexample/l1/test2-1.py\\nexample/l1/test2-2.py\\nexample/l1/l2/l3/test4-1.py']\n\npywildcard\n~~~~~~~~~~\n\n.. code:: python\n\n import re\n import pywildcard\n\n urls = ['example/l1/l2/test3-1.py',\n 'example/l1/test2-1.py',\n 'example/l1/test2-2.py',\n 'example/l1/l2/l3/test4-1.py']\n\n regex = pywildcard.translate('example/**')\n # 'example/.*?$(?ms)'\n re.findall(regex, \"\\n\".join(urls))\n # return ['example/l1/l2/test3-1.py',\n # 'example/l1/test2-1.py',\n # 'example/l1/test2-2.py',\n # 'example/l1/l2/l3/test4-1.py']\n\nRunning the unit tests\n----------------------\n\n\\`\\`\\`bash # Check out the git repository. git clone\ngit@github.com:agalera/python-wildcard.git # Enter the directory. cd\npython-wildcard # Install pytest if you have not done already. pip\ninstall pytest # Run the tests pytest\n\n.. |PypiDownloads| image:: https://img.shields.io/pypi/dm/pywildcard.svg\n :target: https://pypi.python.org/pypi/pywildcard\n\n\nCHANGELOG\n=========\n\n1.0.8 (2015-11-26)\n------------------\n\n- update README.md\n\n1.0.7 (2015-11-25)\n------------------\n\n- Add documentation\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/agalera/python-wildcard", "keywords": "wildcard", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "pywildcard", "package_url": "https://pypi.org/project/pywildcard/", "platform": "", "project_url": "https://pypi.org/project/pywildcard/", "project_urls": { "Homepage": "https://github.com/agalera/python-wildcard" }, "release_url": "https://pypi.org/project/pywildcard/1.0.10/", "requires_dist": null, "requires_python": "", "summary": "A fork of fnmatch to implement **", "version": "1.0.10" }, "last_serial": 5011978, "releases": { "1.0.10": [ { "comment_text": "", "digests": { "md5": "d3f0d34f2c6985dca6b471dd9de0248a", "sha256": "825f7dc4eac27fdb2f59052ccccf6e3cbbbc09e3c8b07c5021b2b841cccb6161" }, "downloads": -1, "filename": "pywildcard-1.0.10.tar.gz", "has_sig": false, "md5_digest": "d3f0d34f2c6985dca6b471dd9de0248a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3631, "upload_time": "2019-04-01T08:31:58", "url": "https://files.pythonhosted.org/packages/c2/d4/76fe6f50a6e18b112338a171ff05e787e47620ed68f8e422bac6317142c0/pywildcard-1.0.10.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "ca0ec587692e6218222aabb6d4a0c9cd", "sha256": "e0447593e49af54da0afb300334a9d5876dc4f9953d6dddccac0d8fe00c65f56" }, "downloads": -1, "filename": "pywildcard-1.0.5.tar.gz", "has_sig": false, "md5_digest": "ca0ec587692e6218222aabb6d4a0c9cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1593, "upload_time": "2015-11-25T15:28:18", "url": "https://files.pythonhosted.org/packages/6b/91/e8704316d0be87f76745f2d905d783ed9eaa90f7cdb265b97e6ffdaa78f0/pywildcard-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "d454d8f2a004a32445ee0f3680b2b6ab", "sha256": "ef21651f3617f6c130634a9c978ad7c91a315cbe14a81b0c15e7fa542af13ff3" }, "downloads": -1, "filename": "pywildcard-1.0.6.tar.gz", "has_sig": false, "md5_digest": "d454d8f2a004a32445ee0f3680b2b6ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2749, "upload_time": "2015-11-25T15:31:37", "url": "https://files.pythonhosted.org/packages/e1/f9/c56aa94ec35ef1385ac741b12883ff569dd60c8e01e1ee8ed96932ea436b/pywildcard-1.0.6.tar.gz" } ], "1.0.7": [], "1.0.7-1": [ { "comment_text": "", "digests": { "md5": "695c7b71de37b70726bd15ba40e7bc06", "sha256": "da400f0a6cccf13efa9bba620ca4053d4ee22ff60e177f6db6ab73801a7c2fcd" }, "downloads": -1, "filename": "pywildcard-1.0.7-1.tar.gz", "has_sig": false, "md5_digest": "695c7b71de37b70726bd15ba40e7bc06", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3265, "upload_time": "2015-11-25T16:38:19", "url": "https://files.pythonhosted.org/packages/53/00/a61b41c5ccb658aa49944b9d5191dce6147b5e26ede49aa69924c7b48d8b/pywildcard-1.0.7-1.tar.gz" } ], "1.0.8": [ { "comment_text": "", "digests": { "md5": "5a0757229fdb316fcf026b51b6a27c33", "sha256": "49cd97f7514bf15a404272cb4003019b00f93ed2336fd8e7347c46559c49093c" }, "downloads": -1, "filename": "pywildcard-1.0.8.tar.gz", "has_sig": false, "md5_digest": "5a0757229fdb316fcf026b51b6a27c33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3487, "upload_time": "2015-11-26T09:59:28", "url": "https://files.pythonhosted.org/packages/a5/ca/1e9664015502a1a35f52d4ee60046e9819f78452378403e6066d96262ea7/pywildcard-1.0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d3f0d34f2c6985dca6b471dd9de0248a", "sha256": "825f7dc4eac27fdb2f59052ccccf6e3cbbbc09e3c8b07c5021b2b841cccb6161" }, "downloads": -1, "filename": "pywildcard-1.0.10.tar.gz", "has_sig": false, "md5_digest": "d3f0d34f2c6985dca6b471dd9de0248a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3631, "upload_time": "2019-04-01T08:31:58", "url": "https://files.pythonhosted.org/packages/c2/d4/76fe6f50a6e18b112338a171ff05e787e47620ed68f8e422bac6317142c0/pywildcard-1.0.10.tar.gz" } ] }