Skip to main content

Universal prompt builder module for creating dynamic prompts

Project description

Universal Prompt Builder

동적 프롬프트 생성을 위한 범용 프롬프트 빌더 모듈입니다.

특징

  • 🔧 템플릿 기반: Jinja2를 사용한 유연한 템플릿 시스템
  • 📝 동적 생성: 컨텍스트에 따른 동적 프롬프트 생성
  • 🎯 타입 안전: Pydantic을 통한 강력한 타입 검증
  • 🔄 재사용 가능: 모듈화된 프롬프트 컴포넌트

설치

pip install yeonjae-universal-prompt-builder

사용법

from yeonjae_universal_prompt_builder import PromptBuilder, PromptTemplate

# 기본 사용법
builder = PromptBuilder()
template = PromptTemplate(
    name="greeting",
    template="Hello, {{ name }}! Welcome to {{ place }}.",
    variables=["name", "place"]
)

prompt = builder.build(template, {"name": "Alice", "place": "PyPI"})
print(prompt)  # "Hello, Alice! Welcome to PyPI."

라이센스

MIT License

버전 히스토리

  • 1.0.2: 초기 배포 버전
  • 1.0.1: 개발 버전
  • 1.0.0: 프로토타입

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

raas_prompt_builder-1.0.6.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

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

raas_prompt_builder-1.0.6-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file raas_prompt_builder-1.0.6.tar.gz.

File metadata

  • Download URL: raas_prompt_builder-1.0.6.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for raas_prompt_builder-1.0.6.tar.gz
Algorithm Hash digest
SHA256 a69a345e68c56bee24e429025a29b05edfcbd86ef54dc4a337c37c5f4c69b25c
MD5 bc66cccc9b98900ccf5f2cae2a921b1e
BLAKE2b-256 b0b4f43069172b7085d1d40f74a9cf8aba66165c6c5353e64932d3e54f438f6c

See more details on using hashes here.

File details

Details for the file raas_prompt_builder-1.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for raas_prompt_builder-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ee315e7d8ff751dfc325fa5a61431110c92a4ea2c5d325063a2a30f33fa7dad9
MD5 d1920a2990e3b2950490e31efae13e13
BLAKE2b-256 053fa2cdf19e17a3b08e2e93613e9079cb0ec8ff173bc0847cf61ae20b5936bf

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