Skip to main content

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.

Metadata

Release files for ai-prompt-manager 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai-prompt-manager 0.1.1
File Size Uploaded Provenance Actions
ai_prompt_manager-0.1.1.tar.gz 2.7 kB Without provenance Details for ai_prompt_manager-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ai-prompt-manager 0.1.1
File Interpreter ABI Platform Actions
ai_prompt_manager-0.1.1-py3-none-any.whl Python 3 none any Details for ai_prompt_manager-0.1.1-py3-none-any.whl

Total release size: 5.9 kB

Release files / ai_prompt_manager-0.1.1.tar.gz

Download URL ai_prompt_manager-0.1.1.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1743637794f7f1bc5d46190e71d9db569d8f8a93e4abaf81404f1dcc0db10a5a
BLAKE2b-256 checksum
How to use checksums
10b23b073f93ccf9441c1b015c7634a4453d51ac067db52c055215fe39c83110
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / ai_prompt_manager-0.1.1-py3-none-any.whl

Download URL ai_prompt_manager-0.1.1-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b3f3cb7a7d07079afdba70375c848a472a6d2c92927fefc86ad71910c3e2581
BLAKE2b-256 checksum
How to use checksums
73a0000c24ebe6b75b5622bf25854681b1ad35963799f5ff5aa473d65ba93c14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Security for ai-prompt-manager 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page