nr.gitignore
A simple .gitignore pattern parser and matcher.
Example Usage
import os
import nr.gitignore
patterns = nr.gitignore.parse()
for root, dirs, files in nr.gitignore.walk(patterns, '.'):
# ...
import nr.gitignore
ignore = nr.gitignore.IgnoreList()
ignore.parse(['__pycache__', 'dist'])
assert ignore.match('./dist/module-1.0.0.tar.gz') == nr.gitignore.MATCH_IGNORE
Copyright © 2018 Niklas Rosenstein
Metadata
Release files for nr.gitignore 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nr.gitignore-1.0.0.tar.gz | 5.3 kB | Details |
Release files / nr.gitignore-1.0.0.tar.gz
| Download URL | nr.gitignore-1.0.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0deee7c819d8ce1ae4371fdece278908427402570fd114a2e7007a7a3989886
|
|
BLAKE2b-256 checksum How to use checksums |
d828777081d92e25f69b8d49683897917304aa89f06e719c7a13746f7e365ad9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |