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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file wildmatch-0.3.3.tar.gz.

File metadata

  • Download URL: wildmatch-0.3.3.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for wildmatch-0.3.3.tar.gz
Algorithm Hash digest
SHA256 759210f9327110df605c69ec485c097a55dfdd9d2b5ae70ef48c1cba3cc9e173
MD5 237c1da926f4f350cd8520c732e8df00
BLAKE2b-256 e76033953125fb464114d7725f4df8559ccf53de50205852675c3e85904e08b9

See more details on using hashes here.

File details

Details for the file wildmatch-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: wildmatch-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for wildmatch-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 15cde34102543fa541d45c363bcaad76cbbf1c3e5cd76c7826c49cb70ebc4644
MD5 87f5d5ade1baba045bfe898cb4e2ddca
BLAKE2b-256 7b7d24db9bcdd989e5ce98da210fd947cbda418c5787eb41dc829aa8d9ba7306

See more details on using hashes here.

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