Python 765 FILES 3 FINDINGS

HOW PYDANTIC
ACTUALLY WORKS

Data validation using Python type annotations. Conventions, patterns, and architecture extracted from the pydantic/pydantic repository by sourcebook.

QUICK_REF:
Validation: Pydantic BaseModel Testing: pytest.

KEY_FINDINGS

Tests live in a separate test/ directory, mirroring src/ structure. New tests go there, not next to source files.

HIGH

Use Pydantic BaseModel for data classes. This is the project's standard validation approach.

HIGH
94 files use Pydantic

Tests use pytest.

HIGH
34 test files
GENERATED IN ~3 SECONDS WITH

npx sourcebook init

VIEW ON GITHUB star

FROM_THE_BLOG

RELATED_REPOS