A tiny CLI that outputs files as Markdown-formatted code blocks.
Project description
inprompt
A tiny CLI that outputs files as Markdown-formatted code blocks. Handy for pasting source into prompts for large-language models.
Usage
Pass files or glob patterns to inprompt and pipe the result to your clipboard:
inprompt pyproject.toml '**/*.py' | pbcopy
Need a different fence delimiter? Use --fence (or -f):
inprompt -f "~~~" script.py | pbcopy
Note: Always quote glob patterns such as '**/*.py' so the shell doesn't expand
them before inprompt sees them.
The | pbcopy (or equivalent) copies the formatted blocks directly to your clipboard:
-
macOS:
pbcopyis built-in. -
Linux: install
xclipand define aliases for convenience:alias pbcopy='xclip -selection clipboard' alias pbpaste='xclip -selection clipboard -o'
Output format:
<filename>
```` ← configurable with --fence / -f
<file contents>
````
Installation
pip install inprompt
License
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 inprompt-1.6.2.tar.gz.
File metadata
- Download URL: inprompt-1.6.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69e39e42f6b364cb9dbf4a51374f68ecbc036b40d91d1514ff18cdf5c66be7ea
|
|
| MD5 |
9f3e755e53839a04188e7dd5b789065a
|
|
| BLAKE2b-256 |
3ec24d1057270a60de2c845562eeb5b61eb199c9c57c314138db1f88940a4673
|
File details
Details for the file inprompt-1.6.2-py3-none-any.whl.
File metadata
- Download URL: inprompt-1.6.2-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d163ad663cfcf80cb91185c556c5478f96dcb3ab3d062ff10066e83568af240
|
|
| MD5 |
5919411f89e17ba1e4d5a2a14567684c
|
|
| BLAKE2b-256 |
e1bc74b4361ebc63d6f7a231ad179b99c543777bf9330b9be3d84e30d832ff50
|