Skip to main content

CLI utility that creates a project snapshot for ChatGPT, DeepSeek etc.

Project description

AI-Snap

AI-Snap is a Python utility that captures the structure and contents of a project directory and saves them into a text file.

It's designed for quick documentation of your project's file system before creating a prompt to AI chat.

Features

  • Complete Capture: Records the entire file structure and contents of the project.
  • Customizable Filters: Offers whitelist option for targeted scanning, Git .gitignore / rsync pathspec supported.
  • Command-Line Interface: Simple and easy-to-use command-line tool.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Installation

Install AI-Snap with pip:

pip install AI-Snap

Standalone executable (Windows only)

It's possible not to utilize Python at all and download standalone AI-Snap executable from the project site.

Usage

Command-line help

Usage: ai_snap [OPTIONS] COMMAND [ARGS]...

  Save project structure and file contents, considering rules from the config
  file.

Options:
  --version                   Show the version and exit.
  -i, --include TEXT          Additional patterns to include in the snapshot
  -x, --exclude TEXT          Additional patterns to exclude from the snapshot
  -I, --instruct PATH         Path to the instruction file to include at the
                              beginning
  -f, --instruct-footer PATH  Path to the footer instruction file that follows
                              the file contents
  -c, --config-file PATH      Path to the config file (e.g., .gitignore-like
                              file containing patterns)
  -r, --read-instruct         Read multiline instruction lines from the
                              command line
  -p, --clipboard             Copy the output to the clipboard
  -o, --output PATH           Output file path (default: stdout)
  --help                      Show this message and exit.

  See more at https://github.com/amesk/ai-snap

By default, AI-Snap will scan all files and directories in the current folder and produce an output file called project_contents.txt.

Example

Let's assume that we are going to improve some aspect of AI-snap with ChatGPT.

First of all, we need to create .ai-snap file in the project directory (or specify your own file with --config-file):

ai_snap/
!scripts
!.ai-snap
ai-snap
ai-snap.py
!LICENSE
!README.md
PipFile
pyproject.toml

Contributing

Contributions to AI-Snap are welcome! Feel free to fork the repository, make your changes, and submit a pull request.

License

AI-Snap is open-sourced software licensed under the MIT license.

Support

For support, questions, or feedback, please open an issue in the GitHub repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_snap-0.0.23.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_snap-0.0.23-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file ai_snap-0.0.23.tar.gz.

File metadata

  • Download URL: ai_snap-0.0.23.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for ai_snap-0.0.23.tar.gz
Algorithm Hash digest
SHA256 ba380b3e0e0a6673ff94ed7db0a5230a217757f45166512c42f9e1a3a89df69c
MD5 71b50a01a28e85bed0a0327eaf04965b
BLAKE2b-256 f2539ca35d322fc3171d8f72500c1d0ca59f08c5175218921dd7457cec8ee658

See more details on using hashes here.

File details

Details for the file ai_snap-0.0.23-py3-none-any.whl.

File metadata

  • Download URL: ai_snap-0.0.23-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for ai_snap-0.0.23-py3-none-any.whl
Algorithm Hash digest
SHA256 1ce97dd5a3840f9b2bc7c6692551c94b22788c681a3b66919dd6b916671fe1cb
MD5 8ca642f598c95e1860aa64d1625ba53e
BLAKE2b-256 8d9b2ab6fa955236fa081d7cc71cf07d9a5d0418524e81b8a7c5efc6188c0b9d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page