A tool to copy multiple files into the clipboard for efficient use with chat GPT.
Project description
code-zipper
code-zipper is a command-line tool designed to copy multiple files and directories directly to your clipboard. Perfect for efficiently pasting code or text into ChatGPT!
Features
- Multiple Input Support: Accepts files, directories, or glob patterns.
- Structured Output: Adds line numbers, file names, and sizes.
- Clipboard Integration: Aggregates content for instant pasting.
- Minimal Dependencies: Only uses two external libraries.
Installation
Install via pip:
pip install code-zipper
Ensure Python and pip are installed on your system. The tool is tested and supported for Python 3.10 and above.
Usage
Once installed, run code-zipper from the command line
with desired paths or patterns:
code-zipper <file1> <folder2> <glob-pattern3>
Note that if you are passing just a folder, the tool with recursively
copy all *.py files within that directory.
This is handy if you want to copy all Python files in a project
like code-zipper src.
Example:
code-zipper src *.md tests/util/*.py
Explanation:
srcCopies every*.pyfile from the “src” folder (and any subfolders).*.mdMatches all files ending with.mdin the current directory.tests/util/*.pyMatches only the.pyfiles immediately within thetests/utildirectory (subdirectories are not included).
For copying files from nested folders, use the folder name without a glob pattern.
How It Works:
- Input: Provide a list of file paths, directories, or glob patterns.
- Processing: Reads each file, concatenating contents while maintaining structure.
- Output: Copies the combined result to your clipboard, ready for pasting.
FAQ
How do I install code-zipper?
Install using pip as shown above. Ensure you have a working Python environment.
Are there any file type restrictions?
code-zipper works best with text-based files. Binary files might not display correctly when pasted.
Where can I report issues or contribute?
Issues and contributions are welcome! Visit our GitHub repository to submit bug reports, feature requests, or pull requests.
License
Distributed under the MIT License. See the LICENSE file for more details.
Happy coding!
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 code_zipper-0.1.2.tar.gz.
File metadata
- Download URL: code_zipper-0.1.2.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b62e64f5dbd4a20444b0e4675296dc4ec1789f35eb5152bb13696ca6117fa61
|
|
| MD5 |
c27335220620daf4057ec7484023921e
|
|
| BLAKE2b-256 |
af0ea507e69d9242209fd848a91d9907b52b578f764e92ee7252bbf031af5e20
|
File details
Details for the file code_zipper-0.1.2-py3-none-any.whl.
File metadata
- Download URL: code_zipper-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8149c20878ef63140a4764da521a1955e310f00ba3c3ca61d32c1066bcb1757e
|
|
| MD5 |
d32d6a6cde6631638d743ccf8e0d73bb
|
|
| BLAKE2b-256 |
894d9417a893d3d6f3a6df4563fd2ff4020cbfe2dbe424ecc1fcf1ac4821913e
|