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.5.tar.gz (15.9 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.5-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: raas_prompt_builder-1.0.5.tar.gz
  • Upload date:
  • Size: 15.9 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.5.tar.gz
Algorithm Hash digest
SHA256 06fe05e87aba291bf99f2c0a8004c762d527951e86183cebbb731f5b72018bb0
MD5 c9312407a0a2f77463c8de5202780f1b
BLAKE2b-256 1b396be422405137ef1ac50782dd2edc9563a786d595440a070ab65829f1c031

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for raas_prompt_builder-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7218f9db75500d94f064d4d86be25871406320566d680367e7fcb7a2af0cd925
MD5 a52777b0918be8ce0df521d426d7ef39
BLAKE2b-256 601ec4366abca9ac1d2e4bf8e84d7c514996039f1d3c9fa2f83625a3f38f24ea

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