Skip to main content
Help us improve Python packaging – donate today!

parse .gitignore file

Project Description


Parse file like `.gitignore`.
I write this because, there are no good ignore parsers lib for python.

## Usage
ign = Ignore(['foo/', '/*/*.pyc', '*.txt'])
print ign
names = ['/log/foo/', '/foo', '/bar/', '/x.pyc', '/foo/a.pyc', '/foo/', '/foo/a.txt']
print 'names', names
print ign.exclude(names)
print ign.filter(names)

Licence under [MIT](LICENSE)

Release history Release notifications

This version
History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pyignore-0.1.tar.gz (2.0 kB) Copy SHA256 hash SHA256 Source None Oct 24, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page