#1150536 ITP: pydantic-handlebars -- A Handlebars template engine for composing LLM prompts for Pydantic.

#1150536#5
Date:
2026-10-10 13:31:31 UTC
From:
To:
* Package name    : pydantic-handlebars
  Version         : 0.2.1
  Upstream Contact: David Montague - https://github.com/dmontagu
* URL             : https://github.com/pydantic/pydantic-handlebars
* License         : Expat
  Programming Lang: Python
  Description     : A Handlebars template engine for composing LLM prompts for Pydantic.

Designed for AI/agent developers who build system prompts from dynamic data —
few-shot examples, user-specific context, tool descriptions, and other content
that shouldn't be hardcoded. Templates are validated against Pydantic models at
compile time, catching typos and missing fields before any data is rendered.

The only runtime dependency is Pydantic (2.0+).

This is a dependency for home assistant via pydantic-logfire and python-mcp.

I intend to put this package in the python team where I will also seek
sponsorship.