Skip to main content

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: 프로토타입

Metadata

Release files for raas-prompt-builder 1.0.6

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

Source distribution (sdist)

Source distribution for raas-prompt-builder 1.0.6
File Size Uploaded
raas_prompt_builder-1.0.6.tar.gz 16.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for raas-prompt-builder 1.0.6
File Interpreter ABI Platform
raas_prompt_builder-1.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 28.5 kB

Release files / raas_prompt_builder-1.0.6.tar.gz

Download URL raas_prompt_builder-1.0.6.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a69a345e68c56bee24e429025a29b05edfcbd86ef54dc4a337c37c5f4c69b25c
BLAKE2b-256 checksum
How to use checksums
b0b4f43069172b7085d1d40f74a9cf8aba66165c6c5353e64932d3e54f438f6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / raas_prompt_builder-1.0.6-py3-none-any.whl

Download URL raas_prompt_builder-1.0.6-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee315e7d8ff751dfc325fa5a61431110c92a4ea2c5d325063a2a30f33fa7dad9
BLAKE2b-256 checksum
How to use checksums
053fa2cdf19e17a3b08e2e93613e9079cb0ec8ff173bc0847cf61ae20b5936bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 release files

1.0.5

2 release files

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