Add your description here
Project description
broprompt
Lightweight Python library for prompt template management with dynamic parameter handling.
Features
- Load prompt templates from markdown files
- Dynamic parameter access via dot notation
- Template + parameter combination into final prompt strings
- Export/import parameters as dictionaries
Usage
from broprompt.prompt_engineering import Prompt
# Load template from markdown file
prompts = Prompt.from_markdown("system_prompt.md")
# Set parameters
prompts.params.role = "assistant"
prompts.params.domain = "coding"
# Get final prompt string
final_prompt = prompts.str
# Export parameters
params_dict = prompts.to_dict()
# Import parameters
prompts.from_dict({"role": "expert", "tone": "professional"})
Template Format
Use {parameter_name} placeholders in your markdown files:
# System Prompt
You are {role}, specialized in {domain}.
Respond in {tone} tone.
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
broprompt-0.1.1.tar.gz
(9.5 kB
view details)
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
broprompt-0.1.1-py3-none-any.whl
(12.2 kB
view details)
File details
Details for the file broprompt-0.1.1.tar.gz.
File metadata
- Download URL: broprompt-0.1.1.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d4f77e408c2570594bfa8f01071efae63a85eb330cb15c3ce6ff29a0b843655
|
|
| MD5 |
0841c7aee869e425bccd72f3b00eaa9b
|
|
| BLAKE2b-256 |
a66078a04d919a325bf3b262e0c350512e436db1dd3c16f21b72d405bbfb619a
|
File details
Details for the file broprompt-0.1.1-py3-none-any.whl.
File metadata
- Download URL: broprompt-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45cd5bf0daf5a8a1286e6321b30da780e9e9ae5c79dca2937d51013b9f65e3cf
|
|
| MD5 |
06797e203c0cadc3ee775ece938ed9f7
|
|
| BLAKE2b-256 |
7dfda1c66a08741176fbde3b5602c7085ffe2abe6e5da3b781aebaa7a786befd
|