Skip to main content

A tool to save project structure and contents to a text file

Project description

Snap2Txt

Snap2Txt 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.

Features

  • Complete Capture: Records the entire file structure and contents of the project.
  • Customizable Filters: Offers ignore and whitelist options for targeted scanning.
  • Command-Line Interface: Simple and easy-to-use command-line tool.

Installation

Install Snap2Txt with pip:

pip install snap2txt

Note: The installation now automatically provides .il and .wl files along with the package.

Usage

Navigate to your project directory and run:

snap2txt

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

Locate the .il and .wl Files

If you need to see where Snap2Txt’s .il and .wl files were installed on your system (e.g., to customize them), run:

snap2txt --show-locations

This will print the full path to each file, so you can open or edit them as needed.

Optional Flags

  • --il: Use ignore list defined in .il.
  • --wl: Use whitelist defined in .wl.

Example:

snap2txt --il
snap2txt --wl

Configuration

Snap2Txt respects two files for filtering:

  1. Ignore List (.il): Exclude certain files/directories.
  2. Whitelist (.wl): Include only certain files/directories.

By default, Snap2Txt installs a basic .il and .wl in the package directory. To tailor the behavior for your project, you can edit those files or replace them with your own custom rules.

Tip: To quickly locate where these files were installed, use snap2txt --show-locations.

Example .il File

node_modules/
*.log

Example .wl File

*.py
*.md

Contributing

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

License

Snap2Txt 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

snap2txt-0.2.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

snap2txt-0.2.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file snap2txt-0.2.1.tar.gz.

File metadata

  • Download URL: snap2txt-0.2.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for snap2txt-0.2.1.tar.gz
Algorithm Hash digest
SHA256 11c2ceb0d20f50bae9cf02d2c0221004f268572b321d5d6a44b10d3c7fe299e3
MD5 1615df6eada076f147299db0d86dc13b
BLAKE2b-256 8077a9bc8f60c07a76445eaa763585b5f4b65905d2cc962c0ecc4548098612ff

See more details on using hashes here.

File details

Details for the file snap2txt-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: snap2txt-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for snap2txt-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 185732325fdc3461088ef6d9b71912e383c4e5bc972a88c09fb4e39162b10279
MD5 cd022ad191ef22ab0c759386d5a11578
BLAKE2b-256 0f07eb270a7ca7b1ea5c2469efaf975e09f23a32814a7192241cdb95d6e5a3ce

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