promptflow
Prompt flow Python SDK - build high-quality LLM apps
What it is and what it does
Prompt flow is Microsoft's end-to-end development toolkit for LLM applications. It provides a structured way to create flows that combine language models, Python code, and external tools, then test, evaluate, and deploy them. The package includes CLI tools for initializing flows from templates (like chat), managing API connections, and running interactive tests. It emphasizes production-quality development with built-in tracing to debug LLM interactions, evaluation capabilities for assessing flow quality on larger datasets, and integration with CI/CD pipelines.
The package depends on three internal subpackages: promptflow-tracing for instrumentation, promptflow-core for runtime execution, and promptflow-devkit for local development and testing. It supports Python 3.9 through 3.11 and is actively maintained by Microsoft, with recent security fixes and improvements documented in the release history.
Use it for:
- Build and iterate on chatbot flows using the CLI template system and interactive testing mode.
- Evaluate LLM application quality by running flows against test datasets and integrating results into CI/CD.
- Debug LLM interactions with built-in tracing to understand how prompts and model outputs flow through your application.
- Deploy flows to production or integrate them into existing applications with connection management for API keys.
- Collaborate on LLM projects using the optional Azure AI cloud version for team-based development.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Prompt flow is a development suite for building, testing, and deploying LLM-based applications, integrating prompts, Python code, and external tools into executable flows with built-in tracing and evaluation.
Yes. Prompt flow is actively maintained, has no known vulnerabilities, installs with low friction, and is MIT-licensed. It directly addresses the full development lifecycle for LLM applications—from prototyping to production—with a mature CLI and integration points. Install it if you are building or managing LLM-based applications and want structured tooling for testing, evaluation, and deployment.
Install
promptflow on PyPI
pip
pip install promptflowuv
uv add promptflowpoetry
poetry add promptflowInstalling promptflow
Before you install
Low friction installation as a pure Python wheel. Actively maintained with recent releases; last commit 2026-08-05. Depends on three internal subpackages (promptflow-tracing, promptflow-core, promptflow-devkit) that ship together.
License in practice
MIT License permits commercial and private use with minimal restrictions, making it suitable for both open-source and proprietary LLM applications.
Quickstart
pip install promptflow
pf flow init --flow ./my_chatbot --type chat
pf connection create --file ./my_chatbot/openai.yaml --set api_key=<key> --name open_ai_connection
pf flow test --flow ./my_chatbot --interactive
Requires Python 3.9, 3.10, or 3.11; Python 3.8 support was dropped in v1.17.0 for security reasons.
Verify before relying
- Whether the three runtime dependencies (promptflow-tracing, promptflow-core, promptflow-devkit) are installable independently or only as part of this package.
- Performance characteristics when working with large datasets or complex multi-node flows.
- Compatibility with specific LLM providers beyond OpenAI and Azure OpenAI mentioned in the quick start.
Package facts
| License | MIT License (permissive) |
| Python support | supports the current Python release (<4.0,>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — promptflow-tracing, promptflow-core, promptflow-devkit |
| Maintenance | actively maintained — 105 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 82,848/month — #14,127 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: promptflow-1.18.5-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
promptflow-coreExecutes prompt flow workflows with minimal…
permissive · top 15,000 on PyPI
promptflow-devkitProvides a development toolkit for building,…
permissive · top 15,000 on PyPI
promptyPrompty is a Python runtime for executing LLM…
permissive · top 15,000 on PyPI
vellum-aiVellum is an SDK for building and deploying…
permissive · top 15,000 on PyPI
promptflow-tracingCaptures and visualizes the internal execution…
permissive · top 15,000 on PyPI
promptlayerPromptLayer is a Python SDK for managing,…
permissive · top 15,000 on PyPI
lfxLFX is a lightweight command-line tool that…
unclear · top 15,000 on PyPI
pomlPOML is a markup language and Python SDK for…
unclear · top 15,000 on PyPI
mlflowMLflow is an open-source platform for managing…
permissive · top 1,000 on PyPI
pdd-cliPDD is a CLI tool that treats natural-language…
permissive · top 15,000 on PyPI