Install & Compatibility
Where this runs
tested against v0.3.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 20.7MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 21MB
18MB installed
● package 18MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Walk
✓ from ignore import Walk
✗ import ignore
Most classes are in submodules; direct `import ignore` gives you the top-level module, not the Rust bindings.
Ignore
✓ from ignore import Ignore
✗ from ignore import GitIgnore
The class is called `Ignore`, not `GitIgnore`.
IgnoreFilter
✓ from ignore import IgnoreFilter
✗ from ignore.filter import IgnoreFilter
IgnoreFilter is exposed at the top-level; there is no `filter` submodule.
types
✓ from ignore import types
✗ from ignore import Types
`types` is a module, not a class; import it as a module to access enums like `FileType`.
Walks the ./src directory, respecting .gitignore rules.
from ignore import Walk
walker = Walk('./src', produce_gitignore=True)
for path in walker:
print(path)
Errors
Common errors & fixes
ImportError: cannot import name 'GitIgnore' from 'ignore'
The class is called `Ignore`, not `GitIgnore`.
fixUse `from ignore import Ignore`.
TypeError: Ignore() takes 1 positional argument but 2 were given
The constructor signature changed in 0.3.0; `patterns` must be passed as a keyword argument.
fixUse `Ignore(patterns=['*.pyc'])` instead of `Ignore(['*.pyc'])`.
AttributeError: module 'ignore' has no attribute 'Walk'
`import ignore` gives the top-level module, not the Rust bindings.
fixUse `from ignore import Walk`.
Upgrade
Version history
0.3.3latest on PyPI · released Mar 10, 2026
Audit
Dependencies
ignorerequiredPython bindings rely on the Rust `ignore` crate; bundled in the package.