A command-line tool for merging files with wildcard support.
Project description
Spindle
Spindle is a command-line tool that merges multiple text files into a single output, making it easier to input into ChatGPT and similar AI tools. It supports wildcard patterns for flexible file selection and automatically reads a predefined file list from SpindleLists.txt.
Features
-
Merge multiple files
Combines multiple text files into one output file. -
Wildcard support
Selects target files using patterns such as*.txtor*.py. -
Automatic file list loading
Reads merge target file paths fromSpindleLists.txtin the current directory. -
Simple command-line interface
Use the-ooption to specify the output file; if omitted, the default isspindle_output.txt.
Installation
Install from PyPI (Future Release)
Once released on PyPI, Spindle can be installed using:
pip install spindle-merge
Install from Source
To install from the GitHub repository, run:
git clone https://github.com/ll3ynxnj/spindle.git
cd spindle
pip install .
Usage
Prepare the file list
Create a SpindleLists.txt file in the current directory and list the file paths or wildcard patterns for merging, for example:
# Example list of files to merge
~/projects/example/file1.txt
~/projects/example/*.log
~/projects/example/subdir/*.txt
Execute the merge
Run the following command:
spindle -o combined_output.txt
This merges the specified files into combined_output.txt.
Clipboard Output
The merged text is also copied to the clipboard for easy pasting into AI tools.
Check Help Options
For additional options, use:
spindle --help
Contributing & License
Contributing
Bug reports, feature requests, and pull requests are welcome on GitHub.
License
This project is released under the MIT License. See the LICENCE 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 spindle-merge-1.0.2.tar.gz.
File metadata
- Download URL: spindle-merge-1.0.2.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ea28fb144135d58fad0bda0e8d6aa5fdca9454f1afa2a5bcf72f94977683b6d
|
|
| MD5 |
20bd1d7717348d55be0ca11f10d788f2
|
|
| BLAKE2b-256 |
ceea574b936b609420a7216e76a2307a2725941c9b89672c4f08e0db83068612
|
File details
Details for the file spindle_merge-1.0.2-py3-none-any.whl.
File metadata
- Download URL: spindle_merge-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a6ff4b49e592945b8dbbd7ad8fd7076ecddc37b0e609b23bfb8f52083ca346d
|
|
| MD5 |
4a509251acfe8de925e33d8cbdc24127
|
|
| BLAKE2b-256 |
c54f23935c45ca919d24b0f803eda110d1664f302c33648360f730a9576626ab
|