Name | wcmatch JSON |
Version |
10.0
JSON |
| download |
home_page | None |
Summary | Wildcard/glob file name matcher. |
upload_time | 2024-09-26 18:39:52 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
keywords |
fnmatch
glob
search
wildcard
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
|
[![Donate via PayPal][donate-image]][donate-link]
[![Build][github-ci-image]][github-ci-link]
[![Coverage Status][codecov-image]][codecov-link]
[![PyPI Version][pypi-image]][pypi-link]
[![PyPI Downloads][pypi-down]][pypi-link]
[![PyPI - Python Version][python-image]][pypi-link]
![License][license-image-mit]
# Wildcard Match
## Overview
Wildcard Match provides an enhanced `fnmatch`, `glob`, and `pathlib` library in order to provide file matching and
globbing that more closely follows the features found in Bash. In some ways these libraries are similar to Python's
builtin libraries as they provide a similar interface to match, filter, and glob the file system. But they also include
a number of features found in Bash's globbing such as backslash escaping, brace expansion, extended glob pattern groups,
etc. They also add a number of new useful functions as well, such as `globmatch` which functions like `fnmatch`, but for
paths.
Wildcard Match also adds a file search utility called `wcmatch` that is built on top of `fnmatch` and `globmatch`. It
was originally written for [Rummage](https://github.com/facelessuser/Rummage), but split out into this project to be
used by other projects that may find its approach useful.
Bash is used as a guide when making decisions on behavior for `fnmatch` and `glob`. Behavior may differ from Bash
version to Bash version, but an attempt is made to keep Wildcard Match up with the latest relevant changes. With all of
this said, there may be a few corner cases in which we've intentionally chosen to not *exactly* mirror Bash. If an issue
is found where Wildcard Match seems to deviate in an illogical way, we'd love to hear about it in the
[issue tracker](https://github.com/facelessuser/wcmatch/issues).
## Features
A quick overview of Wildcard Match's Features:
- Provides an interface comparable to Python's builtin in `fnmatch`, `glob`, and `pathlib`.
- Allows for a much more configurable experience when matching or globbing with many more features.
- Adds support for `**` in glob.
- Adds support for Zsh style `***` recursive glob for symlinks.
- Adds support for escaping characters with `\`.
- Add support for POSIX style character classes inside sequences: `[[:alnum:]]`, etc. The `C` locale is used.
- Adds support for brace expansion: `a{b,{c,d}}` --> `ab ac ad`.
- Adds support for expanding `~` or `~username` to the appropriate user path.
- Adds support for extended match patterns: `@(...)`, `+(...)`, `*(...)`, `?(...)`, and `!(...)`.
- Adds ability to match path names via the path centric `globmatch`.
- Provides a `pathlib` variant that uses Wildcard Match's `glob` library instead of Python's default.
- Provides an alternative file crawler called `wcmatch`.
- And more...
## Installation
Installation is easy with pip:
```
pip install wcmatch
```
## Documentation
https://facelessuser.github.io/wcmatch/
## License
MIT
[github-ci-image]: https://github.com/facelessuser/wcmatch/workflows/build/badge.svg?branch=main&event=push
[github-ci-link]: https://github.com/facelessuser/wcmatch/actions?query=workflow%3Abuild+branch%3Amain
[codecov-image]: https://img.shields.io/codecov/c/github/facelessuser/wcmatch/main.svg?logo=codecov&logoColor=aaaaaa&labelColor=333333
[codecov-link]: https://codecov.io/github/facelessuser/wcmatch
[pypi-image]: https://img.shields.io/pypi/v/wcmatch.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333
[pypi-down]: https://img.shields.io/pypi/dm/wcmatch.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333
[pypi-link]: https://pypi.python.org/pypi/wcmatch
[python-image]: https://img.shields.io/pypi/pyversions/wcmatch?logo=python&logoColor=aaaaaa&labelColor=333333
[license-image-mit]: https://img.shields.io/badge/license-MIT-blue.svg?labelColor=333333
[donate-image]: https://img.shields.io/badge/Donate-PayPal-3fabd1?logo=paypal
[donate-link]: https://www.paypal.me/facelessuser
Raw data
{
"_id": null,
"home_page": null,
"name": "wcmatch",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "fnmatch, glob, search, wildcard",
"author": null,
"author_email": "Isaac Muse <Isaac.Muse@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/41/ab/b3a52228538ccb983653c446c1656eddf1d5303b9cb8b9aef6a91299f862/wcmatch-10.0.tar.gz",
"platform": null,
"description": "[![Donate via PayPal][donate-image]][donate-link]\n[![Build][github-ci-image]][github-ci-link]\n[![Coverage Status][codecov-image]][codecov-link]\n[![PyPI Version][pypi-image]][pypi-link]\n[![PyPI Downloads][pypi-down]][pypi-link]\n[![PyPI - Python Version][python-image]][pypi-link]\n![License][license-image-mit]\n# Wildcard Match\n\n## Overview\n\nWildcard Match provides an enhanced `fnmatch`, `glob`, and `pathlib` library in order to provide file matching and\nglobbing that more closely follows the features found in Bash. In some ways these libraries are similar to Python's\nbuiltin libraries as they provide a similar interface to match, filter, and glob the file system. But they also include\na number of features found in Bash's globbing such as backslash escaping, brace expansion, extended glob pattern groups,\netc. They also add a number of new useful functions as well, such as `globmatch` which functions like `fnmatch`, but for\npaths.\n\nWildcard Match also adds a file search utility called `wcmatch` that is built on top of `fnmatch` and `globmatch`. It\nwas originally written for [Rummage](https://github.com/facelessuser/Rummage), but split out into this project to be\nused by other projects that may find its approach useful.\n\nBash is used as a guide when making decisions on behavior for `fnmatch` and `glob`. Behavior may differ from Bash\nversion to Bash version, but an attempt is made to keep Wildcard Match up with the latest relevant changes. With all of\nthis said, there may be a few corner cases in which we've intentionally chosen to not *exactly* mirror Bash. If an issue\nis found where Wildcard Match seems to deviate in an illogical way, we'd love to hear about it in the\n[issue tracker](https://github.com/facelessuser/wcmatch/issues).\n\n## Features\n\nA quick overview of Wildcard Match's Features:\n\n- Provides an interface comparable to Python's builtin in `fnmatch`, `glob`, and `pathlib`.\n- Allows for a much more configurable experience when matching or globbing with many more features.\n- Adds support for `**` in glob.\n- Adds support for Zsh style `***` recursive glob for symlinks.\n- Adds support for escaping characters with `\\`.\n- Add support for POSIX style character classes inside sequences: `[[:alnum:]]`, etc. The `C` locale is used.\n- Adds support for brace expansion: `a{b,{c,d}}` --> `ab ac ad`.\n- Adds support for expanding `~` or `~username` to the appropriate user path.\n- Adds support for extended match patterns: `@(...)`, `+(...)`, `*(...)`, `?(...)`, and `!(...)`.\n- Adds ability to match path names via the path centric `globmatch`.\n- Provides a `pathlib` variant that uses Wildcard Match's `glob` library instead of Python's default.\n- Provides an alternative file crawler called `wcmatch`.\n- And more...\n\n## Installation\n\nInstallation is easy with pip:\n\n```\npip install wcmatch\n```\n\n## Documentation\n\nhttps://facelessuser.github.io/wcmatch/\n\n## License\n\nMIT\n\n\n[github-ci-image]: https://github.com/facelessuser/wcmatch/workflows/build/badge.svg?branch=main&event=push\n[github-ci-link]: https://github.com/facelessuser/wcmatch/actions?query=workflow%3Abuild+branch%3Amain\n[codecov-image]: https://img.shields.io/codecov/c/github/facelessuser/wcmatch/main.svg?logo=codecov&logoColor=aaaaaa&labelColor=333333\n[codecov-link]: https://codecov.io/github/facelessuser/wcmatch\n[pypi-image]: https://img.shields.io/pypi/v/wcmatch.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333\n[pypi-down]: https://img.shields.io/pypi/dm/wcmatch.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333\n[pypi-link]: https://pypi.python.org/pypi/wcmatch\n[python-image]: https://img.shields.io/pypi/pyversions/wcmatch?logo=python&logoColor=aaaaaa&labelColor=333333\n[license-image-mit]: https://img.shields.io/badge/license-MIT-blue.svg?labelColor=333333\n[donate-image]: https://img.shields.io/badge/Donate-PayPal-3fabd1?logo=paypal\n[donate-link]: https://www.paypal.me/facelessuser\n",
"bugtrack_url": null,
"license": null,
"summary": "Wildcard/glob file name matcher.",
"version": "10.0",
"project_urls": {
"Homepage": "https://github.com/facelessuser/wcmatch"
},
"split_keywords": [
"fnmatch",
" glob",
" search",
" wildcard"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "abdf4ee467ab39cc1de4b852c212c1ed3becfec2e486a51ac1ce0091f85f38d7",
"md5": "4a59a7729e725b7ba12fcf77b7c975a7",
"sha256": "0dd927072d03c0a6527a20d2e6ad5ba8d0380e60870c383bc533b71744df7b7a"
},
"downloads": -1,
"filename": "wcmatch-10.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4a59a7729e725b7ba12fcf77b7c975a7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 39347,
"upload_time": "2024-09-26T18:39:51",
"upload_time_iso_8601": "2024-09-26T18:39:51.002827Z",
"url": "https://files.pythonhosted.org/packages/ab/df/4ee467ab39cc1de4b852c212c1ed3becfec2e486a51ac1ce0091f85f38d7/wcmatch-10.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "41abb3a52228538ccb983653c446c1656eddf1d5303b9cb8b9aef6a91299f862",
"md5": "3406a68475ca87422a045cc5e74c6a36",
"sha256": "e72f0de09bba6a04e0de70937b0cf06e55f36f37b3deb422dfaf854b867b840a"
},
"downloads": -1,
"filename": "wcmatch-10.0.tar.gz",
"has_sig": false,
"md5_digest": "3406a68475ca87422a045cc5e74c6a36",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 115578,
"upload_time": "2024-09-26T18:39:52",
"upload_time_iso_8601": "2024-09-26T18:39:52.505227Z",
"url": "https://files.pythonhosted.org/packages/41/ab/b3a52228538ccb983653c446c1656eddf1d5303b9cb8b9aef6a91299f862/wcmatch-10.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-26 18:39:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "facelessuser",
"github_project": "wcmatch",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"lcname": "wcmatch"
}