wcmatch
Wildcard/glob file name matcher.
Decision gist · record as of 2026-08-14
Yes. wcmatch is actively maintained, has no known vulnerabilities, installs with minimal friction, and provides genuinely useful Bash-compatible globbing features that go well beyond Python's standard library. It's appropriate for any project that needs sophisticated file pattern matching or already relies on Bash-like glob syntax.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction: pure Python wheel with a single lightweight runtime dependency (bracex).
- Actively maintained with a recent release (35 days ago) and no known vulnerabilities.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute wcmatch freely in both open-source and proprietary projects with minimal restrictions.
last release 2026-07-10 (35 days) · last repo commit 2026-08-13 · 165 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 44,156,508 downloads/mo, #633 on PyPI
Alternatives
Verify before relying
pip install wcmatch
from wcmatch import glob
# Match files with Bash-like patterns
matches = glob.glob('**/*.py', flags=glob.GLOBSTAR)
for path in matches:
print(path)- Whether the pathlib variant fully replaces Python's pathlib.Path.glob() in all use cases.
- Performance characteristics when globbing very large directory trees compared to standard glob.
What it is and what it does
wcmatch is a file pattern matching and globbing library that extends Python's built-in fnmatch and glob modules with Bash-like features. It provides enhanced pattern matching with support for brace expansion (e.g., `a{b,c}` expands to `ab ac`), extended glob patterns (`@(...)`, `+(...)`, `*(...)`, `?(...)`, `!(...)`), recursive globbing with `**` and Zsh-style `***`, POSIX character classes, backslash escaping, and tilde expansion. The library also includes a pathlib variant that uses wcmatch's glob implementation and a file search utility called wcmatch built on top of fnmatch and globmatch.
The package is designed for developers who need more sophisticated file matching than Python's standard library offers, particularly those familiar with Bash globbing syntax. It maintains low install friction with a single runtime dependency (bracex) and is actively maintained with support for modern Python versions (3.10 through 3.14). The library has been in production use since 2018 and is used by projects like Rummage.
Use it for
- Build scripts that need Bash-compatible glob patterns to find and process files across nested directories.
- File search utilities or IDE plugins requiring flexible pattern matching with brace expansion and extended glob syntax.
- Configuration tools that parse file paths with POSIX character classes or complex wildcard patterns.
- Replacing pathlib.Path.glob() when you need Bash-like features like recursive symlink following with `***`.
- Filtering file lists with extended patterns like `!(*.pyc)` to exclude specific file types.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
wcmatch is actively maintained, has no known vulnerabilities, installs with minimal friction, and provides genuinely useful Bash-compatible globbing features that go well beyond Python's standard library. It's appropriate for any project that needs sophisticated file pattern matching or already relies on Bash-like glob syntax.
Install
wcmatch on PyPI
Before you install
Low friction: pure Python wheel with a single lightweight runtime dependency (bracex). Actively maintained with a recent release (35 days ago) and no known vulnerabilities.
Requires Python 3.10 or later.
License in practice
MIT license is permissive; you can use, modify, and distribute wcmatch freely in both open-source and proprietary projects with minimal restrictions.
Quickstart
pip install wcmatch
from wcmatch import glob
# Match files with Bash-like patterns
matches = glob.glob('**/*.py', flags=glob.GLOBSTAR)
for path in matches:
print(path)
Verify before relying
- Whether the pathlib variant fully replaces Python's pathlib.Path.glob() in all use cases.
- Performance characteristics when globbing very large directory trees compared to standard glob.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagebracex |
| Maintenance | Actively maintained 35 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 44,156,508 / month, #633 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: wcmatch-11.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “bash-style glob patterns”
- wcmatchwcmatch provides enhanced file pattern matching and globbing with…
- braceexpandExpands bash-style brace patterns into sequences of strings,…
- formic2Formic implements Apache Ant FileSet and glob patterns to find files…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also glob2 · globmatch · pathtools · braceexpand · scantree · bracex · formic2 · gitmatch · ignore-python · mkdocs-exclude