Interactive CLI to select files, generate markdown for LLM prompts, and copy it to the clipboard.
Project description
Promptify CLI
An interactive CLI to select files, generate markdown suitable for LLM prompts, and copy it to the clipboard.
Installation
pip install promptify-cli
Demo
Basic Usage
Default Behavior
- Run
promptifyto interactively select files and generate markdown for your clipboard - Supports
.promptignorefiles (works like.gitignore) - Offers to add a basic
.promptignoreif none is found at project root. (First time only) - Includes a file tree to depth 4, excluding ignored files
- Selected files (highlighted green) are md-formatted
- Shows LOC and GPT-4o token counts as you use the UI
Help
promptify --help
Option Short Type Description Default --depth-dINTEGER Max directory depth (0=root only) 4--path-pDIRECTORY Starting directory path CWD --clear-stateClear previous selections --install-completionInstall shell completion --show-completionShow shell completion --helpShow help message and exit
Example Output (Copied to Clipboard)
Project Structure (Depth: 4):
```
example_documentation_project/
├─ foobar/
│ └─ bar.py
├─ foo.py
└─ output.md
```
---
## File: `foo.py`
```python
def foo(bar):
return bar
```
---
## File: `foobar/bar.py`
```python
def bar(foo):
return foo
```
Development
This package is self-contained in 1 file at src/promptify/cli.py. It's in a state that the UI and features meet my needs, but if you wish to modify the functionality, add more args, etc. drop me a github issue (slow response time) or feel free to submit a merge request!
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 promptify_cli-0.1.8.tar.gz.
File metadata
- Download URL: promptify_cli-0.1.8.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25c1e23e04889558b6913b01fcc1f49129298be6ae537c270b42ca55dbb6ef72
|
|
| MD5 |
4ba7c3cb423f9ccc2072207923da1aca
|
|
| BLAKE2b-256 |
5ba2e78ce571f9cac1285a6271e2c0e9ce50637f816890bdc778e21dadaf9e76
|
File details
Details for the file promptify_cli-0.1.8-py3-none-any.whl.
File metadata
- Download URL: promptify_cli-0.1.8-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99791b2912419e71b64de95df1989b3c7afd4d71d28b06ca7178172620c6c33b
|
|
| MD5 |
f950be85c5a1bf916346b6ac45ed0855
|
|
| BLAKE2b-256 |
2e2ee8bf0d5c21f13c3a4176bc4ff590c09520fe636891416ab2c4fad48cf60e
|