Promptdump
A command-line tool to quickly gather and format code and directory structures for AI prompts. This can be useful for creating prompts for e.g. Google AI Studio, which has a large context limit.
- 📁 Formats the relevant files in an entire codebase into a prompt.
- 📋 Copies output to clipboard by default for quick pasting into AI tools.
Installation
# Install using pipx (recommended)
pipx install promptdump
# Or run without installing
uvx promptdump
Usage
Examples
Scan current directory (default extensions: .md, .py, .cpp, .hpp, .js, .ts, .java, .go, .rs, .c, .h) and copy to clipboard:
promptdump
Scan specific file types:
# Only Python and JavaScript files
promptdump .py .js
Include specific files by name:
# Include specific files regardless of extension
promptdump -f pyproject.toml README.md
Combine file types and specific files:
# Include Python files and specific config files
promptdump .py -f requirements.txt config.json
Scan a different directory:
promptdump -d /path/to/project
Save output to a file:
promptdump -o output.txt
Save output to stdout (useful for piping to other commands):
promptdump -o -
Use a custom exclude file (default: .gitignore):
promptdump -e .gitignore_custom
Enable verbose output:
promptdump -v
Options
[EXTENSIONS]- File extensions to include (e.g., .py .js .ts)-f, --files [FILES ...]- Include specific files by name (e.g., README.md) AI--d, --directory PATH- Directory to scan (default: current directory)-o, --output FILE- Write output to file instead of clipboard-e, --exclude FILE- File containing patterns to exclude (default: .gitignore)-v, --verbose- Enable verbose output--help- Show help message and exit
Metadata
Release files for promptdump 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| promptdump-0.2.0.tar.gz | 13.8 kB | Without provenance | Details for promptdump-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| promptdump-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for promptdump-0.2.0-py3-none-any.whl |
Total release size: 19.0 kB
Release files / promptdump-0.2.0.tar.gz
| Download URL | promptdump-0.2.0.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f540a6b0abaa813dd5244396c8e6daf4a5f438e8af3bcb6e07e9fb512d7253d
|
|
BLAKE2b-256 checksum How to use checksums |
c6932fbfddb82c5d5348a102acd7c400a996fb3d412147bffead16d9218c6566
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.14
|
Release files / promptdump-0.2.0-py3-none-any.whl
| Download URL | promptdump-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
931421cf735a2b1cdf160b815073dcc9dbd59308c9172ee9b17f273bcc7466df
|
|
BLAKE2b-256 checksum How to use checksums |
b8bed28e9c4e0e41e920800de1b5521003566d5f5bb8b6a031266db2dbabeb60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.14
|
Security for promptdump 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.