https://github.com/legopitstop/gitfiles-py
Load, filter and match .gitignore files.
https://github.com/legopitstop/gitfiles-py
gitfiles github gitignore ignore pypi python
Last synced: 29 days ago
JSON representation
Load, filter and match .gitignore files.
- Host: GitHub
- URL: https://github.com/legopitstop/gitfiles-py
- Owner: legopitstop
- License: mit
- Created: 2024-12-18T05:20:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-05-19T20:11:51.000Z (about 1 month ago)
- Last Synced: 2026-05-19T23:46:40.858Z (about 1 month ago)
- Topics: gitfiles, github, gitignore, ignore, pypi, python
- Language: Python
- Homepage: https://pypi.org/project/gitfiles/
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# gitfiles
[](https://pypi.org/project/gitfiles/)
[](https://www.python.org/downloads//)


[](https://github.com/ambv/black)
[](https://github.com/legopitstop/gitfiles-py/issues)
Load, filter and match `.gitignore` files.
## Installation
Install the module with pip:
```bat
pip3 install gitfiles
```
Update existing installation: `pip3 install gitfiles --upgrade`
## Examples
```Python
import gitfiles
print(gitfiles.match('file.so'))
```
```Python
import gitfiles
files = [
'.venv',
'.env',
'app.py'
]
print(gitfiles.filter(files))
```