A small simple prompt manager for LLM prompts
Project description
Prompt Manager
A small simple prompt manager for LLM prompts.
Usage
from ai_prompt_manager import get_prompt, render_prompt
prompt = get_prompt("my-prompt.md")
print(prompt)
prompt = render_prompt(prompt, {"name": "John"})
print(prompt)
Features
-
Flexible variable substitution with render_prompt()
-
Include files from the prompts directory, or from a url with get_prompt()
-
Combine files, e.g. roleplay-prompt.txt + output-format-prompt.js
-
Handle not-quite-json output from LLMs with parse_json()
Contributing
Contributions are welcome! Please submit a pull request or open an issue for any bugs or feature requests.
License
This project is licensed under the MIT License.
Contact
For questions or comments, please contact the project maintainer, Daniel Winterstein.
Project details
Release history Release notifications | RSS feed
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 ai_prompt_manager-0.1.1.tar.gz.
File metadata
- Download URL: ai_prompt_manager-0.1.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1743637794f7f1bc5d46190e71d9db569d8f8a93e4abaf81404f1dcc0db10a5a
|
|
| MD5 |
7bc7065192ea317a4061db8e067e5ac0
|
|
| BLAKE2b-256 |
10b23b073f93ccf9441c1b015c7634a4453d51ac067db52c055215fe39c83110
|
File details
Details for the file ai_prompt_manager-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ai_prompt_manager-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b3f3cb7a7d07079afdba70375c848a472a6d2c92927fefc86ad71910c3e2581
|
|
| MD5 |
0a3c153078df6be7a03b8a68a30b5cc8
|
|
| BLAKE2b-256 |
73a0000c24ebe6b75b5622bf25854681b1ad35963799f5ff5aa473d65ba93c14
|