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
.iland.wlfiles 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:
- Ignore List (
.il): Exclude certain files/directories. - 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snap2txt-0.2.2.tar.gz.
File metadata
- Download URL: snap2txt-0.2.2.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
725f736a6de3ad096a1b1344d22ed08fdbc045bae1fbd0cd1fd32b56479f08c8
|
|
| MD5 |
d45925e049ea2b27f5cbbf96bec5881d
|
|
| BLAKE2b-256 |
130f2df5e7c06064dc2f9a419a17a9a8af81eb371346c021677fc5c06bda1dd7
|
File details
Details for the file snap2txt-0.2.2-py3-none-any.whl.
File metadata
- Download URL: snap2txt-0.2.2-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d9c9ff40b4fadcdee0d9e7bb5b594c1d02caeb02fc170ba92d50c947593af71
|
|
| MD5 |
94ade032ed103ec7726fbcea33a95c26
|
|
| BLAKE2b-256 |
49633a2c8588846639b063436cf4f03e792e20aca80f1e2d1cf6efbe9d22dc9c
|