https://github.com/legopitstop/gitfiles
Load, filter and match .gitignore files.
https://github.com/legopitstop/gitfiles
gitfiles github gitignore ignore pypi python
Last synced: 5 months ago
JSON representation
Load, filter and match .gitignore files.
- Host: GitHub
- URL: https://github.com/legopitstop/gitfiles
- Owner: legopitstop
- License: mit
- Created: 2024-12-18T05:20:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-18T05:33:51.000Z (over 1 year ago)
- Last Synced: 2025-09-28T02:30:28.040Z (9 months ago)
- Topics: gitfiles, github, gitignore, ignore, pypi, python
- Language: Python
- Homepage: https://pypi.org/project/gitfiles/
- Size: 6.84 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/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))
```