Metadata-Version: 2.1
Name: wildmatch
Version: 0.3.2
Summary: Wrap pathspec (gitignore-like wildmatch) in a CLI
License: GPLv3
Keywords: git,gitignore,cli
Author: Emma Doyle
Author-email: emma@premiscale.com
Maintainer: Emma Doyle
Maintainer-email: emma@premiscale.com
Requires-Python: >=3.9,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: pathspec (>=0.11.1,<0.12.0)
Description-Content-Type: text/markdown

# `wildmatch`

[![PyPI version](https://img.shields.io/pypi/v/wildmatch.svg?logo=pypi&style=flat-square)](https://pypi.org/project/wildmatch/)
[![PyPI downloads](https://img.shields.io/pypi/dm/wildmatch?style=flat-square)](https://pypistats.org/packages/wildmatch)



This CLI tool is intended to assist in filtering lists of paths by potentially arbitrary `.gitignore`-like configuration
files. It uses the [`python-pathspec`](https://github.com/cpburnz/python-path-specification) library with `argparse` to
allow easier use in pipelines and automation.

```shell
$ wildmatch --help
usage: wildmatch [-h] [-c CONF] [-i INPUT]

Filter lists of paths by arbitrary .gitignore-like configuration files.

optional arguments:
  -h, --help            show this help message and exit
  -c CONF, --conf CONF  optionally set the configuration file to filter by, defaults to .diffignore (default: .diffignore)
  -i INPUT, --input INPUT
                        optionally specify an input file to filter by the configuration file (default: None)
```

## Install

Installation requires Python `>=3.9`.

```shell
pip install wildmatch
```
