Documentation
Pydantic Fixturegen
Deterministic fixture generation, emitters, and diagnostics for Pydantic v2.
Deterministic fixtures
Pydantic Fixturegen: deterministic test data, emitters, and diagnostics
Pydantic Fixturegen exists to remove the guesswork from building test data for Pydantic v2 models. The CLI discovers models, generates typed fixtures, emits JSON/JSONL snapshots, and records diagnostics so audit and CI pipelines stay reproducible. This landing page summarizes the core capabilities and points you to the deep dives on discovery internals, command guides, providers, seed policies, and integrations with FastAPI, pytest, and Pluggy-based workflows.
Why Fixturegen exists
Deterministic fixtures for regression tests, data contracts, and CI diffs without hand-rolled scripts.
Who should use it
Python teams building FastAPI, Django, or microservices that need reproducible JSON, pytest fixtures, schema exports.
What you’ll learn
Command guides, configuration, cookbook recipes, provider internals, quality guardrails, and CI integrations.
First pass: get oriented
Jump into the CLI, pick your install strategy, and skim the feature tour before automating discovery or emitters. These guides explain how Fixturegen plugs into real-world CI and observability stacks.
Daily workflows
Reference the CLI, centralized configuration, and cookbook recipes whenever you extend discovery or add emitters. Each link below takes you directly into the workflow-focused docs so new contributors can onboard fast.
- CLI reference — Commands, flags, watch mode.
- Configuration reference — Precedence, defaults, environment overrides.
- Cookbook — Repeatable recipes for emitters, providers, seeds.
- Discovery guide — AST vs safe import, sandboxing, policies.
Quality systems
Use doctor, testing helpers, and seed/preset policies to keep fixtures deterministic and auditable.
Reference + appendix
Keep these close for API signatures, templated paths, and troubleshooting.
Security & troubleshooting
Runbooks for sandbox policies, doctor failures, CLI diagnostics.
Security guides ↗