No description
All checks were successful
Build and Publish Python Package / build-and-publish (push) Successful in 2m21s
|
||
---|---|---|
.forgejo/workflows | ||
content_snapshot | ||
.gitignore | ||
LICENSE | ||
pyproject.toml | ||
README.md |
ContentSnapshot
Create a snapshot of your project files' content while respecting ignore patterns.
Installation
pip install content-snapshot --index-url https://git.private.coffee/api/packages/kumi/pypi/simple
Usage
Command Line
content-snapshot /path/to/your/project
Python API
from content_snapshot import get_files_content_recursively, load_ignore_patterns
directory_path = "/path/to/your/project"
ignore_spec = load_ignore_patterns(directory_path)
snapshot = get_files_content_recursively(directory_path, ignore_spec)
print(snapshot)
Ignore Files
ContentSnapshot respects the following ignore files:
.gitignore
- Standard Git ignore patterns.snapshotignore
- Additional patterns specific to ContentSnapshot
License
This project is licensed under the MIT License. See the LICENSE file for details.