globmatch
Matching paths against globs
Decision gist · record as of 2026-08-14
Yes, if you need pure-Python glob matching without filesystem access and can accept an unmaintained package. The code is simple, has no known vulnerabilities, and the API is stable. Install only if you are comfortable maintaining a fork or if the pattern-matching logic is unlikely to need updates. Not recommended for new projects expecting active support.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a single lightweight runtime dependency.
- However, the package is abandoned—last release was 2021-01-07, with no active maintenance since then.
License · maintenance · safety
BSD-3 (permissive) — Licensed under BSD-3 (permissive), imposing no restrictions on commercial or private use; attribution required.
last release 2021-01-07 (2045 days) · last repo commit 2021-01-07 · 10 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 131,660 downloads/mo, #11,580 on PyPI
Alternatives
Verify before relying
pip install globmatch
from globmatch import glob_match
glob_match('foo/config', ['**/config']) # Returns True- Whether the package works reliably on modern Python versions beyond those listed in classifiers
- Performance characteristics with large path sets or deeply nested patterns
- Whether backports.functools-lru-cache is actually required at runtime or only for older Python
What it is and what it does
globmatch provides pure-Python path-to-glob matching without touching the filesystem. Unlike the standard library's glob module (which searches disk) or fnmatch (which lacks `**` support), globmatch evaluates whether a given path string matches one or more glob patterns. The `**` pattern matches zero or more directory levels, while `*` matches characters within a single path component. This is useful for filter logic, inclusion/exclusion rules, and pattern validation in applications that don't need filesystem traversal.
The package depends only on backports.functools-lru-cache for memoization and installs as a pure wheel with no compiled dependencies. However, it has been abandoned since its latest release on 2021-01-07 with no recent updates or maintenance.
Use it for
- Filter file paths in build tools or linters against inclusion/exclusion patterns without scanning disk
- Validate whether a given path matches a gitignore-like pattern set in configuration
- Implement path matching logic in package managers or dependency resolvers
- Test glob patterns programmatically without creating temporary files
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need pure-Python glob matching without filesystem access and can accept an unmaintained package.
The code is simple, has no known vulnerabilities, and the API is stable. Install only if you are comfortable maintaining a fork or if the pattern-matching logic is unlikely to need updates. Not recommended for new projects expecting active support.
Install
globmatch on PyPI
Before you install
Low install friction with a single lightweight runtime dependency. However, the package is abandoned—last release was 2021-01-07, with no active maintenance since then.
License in practice
Licensed under BSD-3 (permissive), imposing no restrictions on commercial or private use; attribution required.
Quickstart
pip install globmatch
from globmatch import glob_match
glob_match('foo/config', ['**/config']) # Returns True
Verify before relying
- Whether the package works reliably on modern Python versions beyond those listed in classifiers
- Performance characteristics with large path sets or deeply nested patterns
- Whether backports.functools-lru-cache is actually required at runtime or only for older Python
Package facts
| License | BSD-3 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagebackports.functools-lru-cache |
| Maintenance | Abandoned 2,045 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 131,660 / month, #11,580 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: globmatch-2.0.0-py2.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 › “glob pattern matching”
- globmatchMatches file paths against glob patterns without filesystem access,…
- glob2glob2 extends Python's built-in glob module with recursive **…
- wcmatchwcmatch provides enhanced file pattern matching and globbing with…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities 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.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
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.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also dpath · formic2 · wcmatch · glob2 · gitmatch · pathtools · ignore-python · py-walk · scantree · findlibs