Skip to main content

Wrap pathspec (gitignore-like wildmatch) in a CLI

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wildmatch-0.3.3.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

wildmatch-0.3.3-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page