Skip to content

emmeowzing/wildmatch

Repository files navigation

wildmatch

PyPI version PyPI downloads

This CLI tool is intended to assist in filtering lists of paths by potentially arbitrary .gitignore-like configuration files. It uses the python-pathspec library with argparse to allow easier use in pipelines and automation.

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

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)
  --version             Display wildmatch version (0.0.1). (default: False)

Install

Installation requires Python >=3.9.

pip install wildmatch