wcmatch


Namewcmatch JSON
Version 8.5.1 PyPI version JSON
download
home_page
SummaryWildcard/glob file name matcher.
upload_time2024-02-20 17:19:04
maintainer
docs_urlNone
author
requires_python>=3.8
license
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 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": "",
    "name": "wcmatch",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "fnmatch,glob,search,wildcard",
    "author": "",
    "author_email": "Isaac Muse <Isaac.Muse@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/38/c6/0c5f324561c9396868d6badf571590c1a7802a81180c3097e4dfdc2f35c0/wcmatch-8.5.1.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 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": "",
    "summary": "Wildcard/glob file name matcher.",
    "version": "8.5.1",
    "project_urls": {
        "Homepage": "https://github.com/facelessuser/wcmatch"
    },
    "split_keywords": [
        "fnmatch",
        "glob",
        "search",
        "wildcard"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "170673f17a8c322de938809f570e7bb09f1345fc9821b8fbe37f0f785d403475",
                "md5": "9708636f66bdc41b43e27979a9b39f46",
                "sha256": "24c19cedc92bc9c9e27f39db4e1824d72f95bd2cea32b254a47a45b1a1b227ed"
            },
            "downloads": -1,
            "filename": "wcmatch-8.5.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9708636f66bdc41b43e27979a9b39f46",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 39415,
            "upload_time": "2024-02-20T17:19:02",
            "upload_time_iso_8601": "2024-02-20T17:19:02.096073Z",
            "url": "https://files.pythonhosted.org/packages/17/06/73f17a8c322de938809f570e7bb09f1345fc9821b8fbe37f0f785d403475/wcmatch-8.5.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "38c60c5f324561c9396868d6badf571590c1a7802a81180c3097e4dfdc2f35c0",
                "md5": "d8e89a05e101348c4c7e5b42f532d39f",
                "sha256": "c0088c7f6426cf6bf27e530e2b7b734031905f7e490475fd83c7c5008ab581b3"
            },
            "downloads": -1,
            "filename": "wcmatch-8.5.1.tar.gz",
            "has_sig": false,
            "md5_digest": "d8e89a05e101348c4c7e5b42f532d39f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 114891,
            "upload_time": "2024-02-20T17:19:04",
            "upload_time_iso_8601": "2024-02-20T17:19:04.534319Z",
            "url": "https://files.pythonhosted.org/packages/38/c6/0c5f324561c9396868d6badf571590c1a7802a81180c3097e4dfdc2f35c0/wcmatch-8.5.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-20 17:19:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "facelessuser",
    "github_project": "wcmatch",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "lcname": "wcmatch"
}
        
Elapsed time: 0.34710s