Skip to main content

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_management import load_markdown_prompt

# Load template from markdown file
prompts = load_markdown_prompt("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.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

broprompt-0.1.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file broprompt-0.1.0.tar.gz.

File metadata

  • Download URL: broprompt-0.1.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.4

File hashes

Hashes for broprompt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6dee9732daa1b253844e532c06d106072283f210d0eeb40ba133923166db51ea
MD5 6de5a889d007fae4f34a87143908a612
BLAKE2b-256 fef5444bf0a00ca9d0b4f659aabc43a7b6cf4fb4ca9ffe13d190877236dedd4e

See more details on using hashes here.

File details

Details for the file broprompt-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: broprompt-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.4

File hashes

Hashes for broprompt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf32ada4de39431798e9903550d81190bb888f35876557ec521b0728d911db76
MD5 e3e86f0bb94e3aee700d62251cd322dd
BLAKE2b-256 62bcbbbe3ea50f691905e53090f40128fe9a66ae32382dc121d498c40a282c5e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page