Skip to content

Glossary: ML in Production

Pydantic

Also written: BaseModel, Field, Literal, extra="forbid", TypeAdapter, model_dump

A Python library that turns a schema into code that validates data, rejecting bad types, out-of-range values and unknown fields. One `Subscriber` class validates both API requests and weekly files.

Where the book teaches it

Related terms

SchemaHTTP status codes