PyPI package

instructor

Updated 2026-07-16 View source ↗

#20 of 54 by Downloads / month among PyPI packages

17.3M Downloads / month

structured outputs for llm

About

Get reliable JSON from any LLM. Built on Pydantic for validation, type safety, and IDE support.

That's it. No JSON parsing, no error handling, no retries. Just define a model and get structured data.

Use Instructor for fast extraction, reach for PydanticAI when you need agents. Instructor keeps schema-first flows simple and cheap. If your app needs richer agent runs, built-in observability, or shareable traces, try PydanticAI. PydanticAI is the official agent runtime from the Pydantic team, adding typed tools, replayable datasets, evals, and production dashboards while using the same Pydantic models. Dive into the PydanticAI docs to see how it extends Instructor-style workflows.

Getting…

Excerpted from pypi.org/project/instructor/

Latest metrics

Downloads / month 17.3M 2026-07-16
Downloads / week 4.3M 2026-07-16
Downloads / day 680.1k 2026-07-16