{"categories":[{"label":"Filters","url":"https://skillfed.io/packages/category/text-processing-filters"},{"label":"Git","url":"https://skillfed.io/packages/category/software-development-version-control-git"}],"enrichment":{"capability":"Gitmatch implements gitignore-style pattern matching for file paths, letting you compile patterns and test whether relative paths match them.","skillfed_tags":["gitignore","pattern-matching"],"use_cases":["Build tools that need to respect .gitignore rules when deciding which files to process or exclude.","File synchronization or backup utilities that filter paths using gitignore patterns.","Code generators or linters that should skip files matching project ignore rules.","Testing frameworks that need to exclude test files or directories based on gitignore patterns.","Static analysis tools that want to honor ignore patterns without invoking git."],"what_it_does":"Gitmatch is a pure Python library that brings gitignore pattern matching semantics to your code. You compile a list of gitignore-style patterns (including negations with `!` prefix) into a matcher object, then test relative file paths against it to determine if they match. The matcher returns a match object that tells you not just whether a path matched, but which pattern matched it and whether that pattern was a negation.\n\nThe library handles the full gitignore syntax including wildcards, directory-only patterns (trailing `/`), and negation rules. It has no external dependencies and runs on Python 3.10+, making it straightforward to embed in tools that need to respect or replicate gitignore behavior without shelling out to git itself.","worth_installing":"Yes. Gitmatch is a focused, well-maintained library with zero dependencies, permissive licensing, and active development. Install it if you need to match file paths against gitignore-style patterns in Python code without shelling out to git. The only constraint is Python 3.10+."},"id":"gitmatch","links":{"html":"https://skillfed.io/packages/gitmatch","md":"https://skillfed.io/packages/gitmatch.md","pypi":"https://pypi.org/project/gitmatch/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-12-05","license_spdx":"MIT","license_treatment":"permissive","name":"gitmatch","python_support":"supports_current","summary":"Gitignore-style path matching"},"popularity":{"monthly_downloads":87742,"position":13771,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.0"}
