skillfed

poml

Prompt Orchestration Markup Language

poml v0.0.8 74.5K downloads/30d#14,824 on PyPI
License unclear The MIT License (MIT) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software… (full text in the JSON record) AGING released

What it is and what it does

POML is a markup language designed to bring structure and reusability to prompt engineering for LLMs. It uses an HTML-like syntax with semantic components (role, task, output-format, etc.) to organize prompt logic, embed external data (text, spreadsheets, images), and apply CSS-like styling to control presentation without changing core content. The Python SDK integrates POML into your application workflow, rendering templates with variables, loops, and conditionals to generate data-driven prompts dynamically.

The package targets developers who write complex, multi-part prompts and want to separate content from formatting, reduce duplication, and manage prompt variations systematically. It requires Python 3.9 or later and depends on pydantic for validation and nodejs-wheel for the underlying rendering engine. The project is maintained by Microsoft but is still in early releases (0.0.8), so the API and feature set may evolve.

Use it for:

  • Build reusable prompt templates with variables and conditionals to generate different prompts from a single POML file.
  • Embed images, CSV data, or text files directly into prompts and control their formatting via styling rules.
  • Separate prompt logic from presentation so you can test different verbosity or syntax styles without rewriting core prompts.
  • Organize multi-step reasoning prompts (role, context, task, output format) in a structured, maintainable markup file.
  • Integrate POML rendering into a Python application to dynamically generate and send prompts to an LLM API.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

POML is a markup language and Python SDK for structuring, templating, and styling prompts for large language models, with support for embedding external data and managing presentation variations.

Yes, if you regularly write complex, multi-part prompts and want a structured, reusable approach to prompt engineering. The MIT license is permissive, and the package has no known vulnerabilities. However, be aware that it is in early releases (0.0.8) with aging maintenance (354 days since last release), so expect the API to evolve and support to be slower. The nodejs-wheel dependency adds medium install friction. Start with a small pilot to verify it fits your workflow before committing to it in production.

Install

poml on PyPI

pip

pip install poml

uv

uv add poml

poetry

poetry add poml

Installing poml

Before you install

Medium install friction due to compiled wheels across multiple platforms (macOS, Linux, Windows). The package depends on nodejs-wheel and pydantic. Maintenance status is aging—last release was 354 days ago—so expect slower response to issues.

License in practice

MIT License permits unrestricted use, modification, and distribution with minimal restrictions. No commercial or proprietary concerns.

Quickstart

pip install poml

from poml import PomlRenderer

renderer = PomlRenderer()
with open('example.poml', 'r') as f:
    prompt_text = renderer.render(f.read())

Requires Python 3.9 or later. The nodejs-wheel dependency must be installed successfully, which may require platform-specific wheels (macOS, Linux, Windows).

Verify before relying

  • Actual stability and maturity of the 0.0.8 release—early version numbers suggest the API may still be in flux.
  • Whether the nodejs-wheel dependency adds significant overhead or complexity to the installation.
  • Real-world performance and compatibility with current LLM APIs (OpenAI, Azure, Google) mentioned in the docs.

Package facts

License The MIT License (MIT) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software… (full text in the JSON record) (unclear)
Python support supports the current Python release (>=3.9)
Install friction medium — platform-specific wheel
Runtime dependencies 2 — nodejs-wheel, pydantic
Maintenance aging — 354 days since the last release
First released
Downloads 74,492/month — #14,824 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: poml-0.0.8-py3-none-macosx_10_9_x86_64.whl; poml-0.0.8-py3-none-macosx_11_0_arm64.whl; poml-0.0.8-py3-none-manylinux_2_17_aarch64.whl; poml-0.0.8-py3-none-manylinux_2_17_x86_64.whl; poml-0.0.8-py3-none-win_amd64.whl

Tags

prompt engineering markup languagellm prompt templatingstructured prompt managementprompt styling and formattingdata-driven prompt generation
llm-promptingtemplate-enginemarkup-language

More Markup packages