content-snapshot (0.1.1)

Published 2025-05-27 15:11:35 +00:00 by kumi in kumi/contentsnapshot

Installation

pip install --index-url  content-snapshot

About this package

Create a snapshot of your project files' content while respecting ignore patterns

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.

Requirements

Requires Python: >=3.6
Details
PyPI
2025-05-27 15:11:35 +00:00
35
MIT
7.3 KiB
Assets (2)
Versions (2) View all
0.1.1 2025-05-27
0.1.0 2025-05-27