A simple tool to aggregate code and documentation from a directory into a single text file.
Project description
📦 nassemble
nassemble is a simple command-line utility that recursively explores a directory and combines all source code and documentation files into a single text file.
This is especially useful for providing context to Large Language Models (LLMs) or for creating a simple, single-file archive of a project's text-based assets.
Installation
You can install nassemble directly from PyPI:
pip install nassemble
Usage
Using nassemble is simple. Just run it from your terminal.
nassemble [OPTIONS]
Options
-p, --path(str): The path to start exploring. (Default:., the current directory)-o, --output(str): The name of the combined output file. (Default:.all_doc_together.txt)-d, --depth(int): The maximum recursive depth. (Default:-1, for no limit)
Example
To combine all .py and .md files in your current project into a file named context.txt, you would run:
nassemble -p . -o context.txt
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
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 nassemble-1.0.0.tar.gz.
File metadata
- Download URL: nassemble-1.0.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd725a7b9868b48392f1e6a3c1b7f5214f6d2c0343fa152c8eb37c45009a5216
|
|
| MD5 |
280575f8be0b6df12d7ea7d1a76c35b5
|
|
| BLAKE2b-256 |
37e861b316f84f0f721439804a7460058beaff0512f37b766b377db84f6264dd
|
File details
Details for the file nassemble-1.0.0-py3-none-any.whl.
File metadata
- Download URL: nassemble-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1bd92ee9aa3d2f04bc8e6879e6ed5b61c87ff59cee07ee203956491e4c016a2
|
|
| MD5 |
67b68d96138318ef30840c8caabc90a2
|
|
| BLAKE2b-256 |
8db8a02fd2e09a59736d33558a7e571f590fbaf0a13b6be74ee63da3cab04a10
|