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 yeonjae-universal-prompt-builder 1.0.5

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

Source distribution (sdist)

Source distribution for yeonjae-universal-prompt-builder 1.0.5
File Size Uploaded
yeonjae_universal_prompt_builder-1.0.5.tar.gz 12.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yeonjae-universal-prompt-builder 1.0.5
File Interpreter ABI Platform
yeonjae_universal_prompt_builder-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 21.9 kB

Release files / yeonjae_universal_prompt_builder-1.0.5.tar.gz

Download URL yeonjae_universal_prompt_builder-1.0.5.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ed7a787a3d02064caa5fcddea41b0c357c029848313b7a0f59b89f1446ac9cd5
BLAKE2b-256 checksum
How to use checksums
acd81d6c4800421a9b28475e8f9f94967e446d4d7bc5ae8d7a78a270df33f184
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Release files / yeonjae_universal_prompt_builder-1.0.5-py3-none-any.whl

Download URL yeonjae_universal_prompt_builder-1.0.5-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51e49ed3a39c7f4dfa360f22a78f4a3d9b7b8790fef6e668ee41fb2bd3f83758
BLAKE2b-256 checksum
How to use checksums
dadc5f93d368377e4a3f9a7f2f33fd86607e82321b8e2c9e7e1cca7afcbc9b4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.2

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