parse .gitignore file
Project description
pyignore
==========================
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/a.py', '/foo/a.txt']
print 'names', names
print ign.exclude(names)
print ign.filter(names)
Licence under [MIT](LICENSE)
==========================
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/a.py', '/foo/a.txt']
print 'names', names
print ign.exclude(names)
print ign.filter(names)
Licence under [MIT](LICENSE)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyignore-0.1.tar.gz
(2.0 kB
view details)
File details
Details for the file pyignore-0.1.tar.gz
.
File metadata
- Download URL: pyignore-0.1.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32a52c357216c7d41150faf9d57468b99d6035a8cd39bb032ceccc602d1c6f3f |
|
MD5 | de34243a4e4e0641299552258bb614d7 |
|
BLAKE2b-256 | d005d94981b1e3bf7eb7032b7f09de6e07a3179bab3f085f0799f924b8bf2de3 |