Skip to main content

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: pbcopy is built-in.

  • Linux: install xclip and 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

MIT 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

inprompt-1.5.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inprompt-1.5.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file inprompt-1.5.0.tar.gz.

File metadata

  • Download URL: inprompt-1.5.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.10 Darwin/24.4.0

File hashes

Hashes for inprompt-1.5.0.tar.gz
Algorithm Hash digest
SHA256 dc1c21a74a0c00f66035172896689e0944412c58252d8dc05e8b7c004779469e
MD5 72925d5b41786445c54437b7b0377cd6
BLAKE2b-256 3cbd5257dc4fa734d2746d90649a69545308522ab664d5cccc25d7fde7f7d408

See more details on using hashes here.

File details

Details for the file inprompt-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: inprompt-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.10 Darwin/24.4.0

File hashes

Hashes for inprompt-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93bdc6a3318bf197e6762c66159d130ba8dbc915ba7c5cf8d049cd00bed9224f
MD5 f5f6e7fd2d84be5cb6929c9db4b9e602
BLAKE2b-256 7dbf527b48408c54808f0d209bb480e6adb16f8030ee27711a7b03e210ac5d4f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page