$ account model-bakers
Model Bakery is a mature, well-tested Python library for Django that automates the creation of test fixtures by generating random data for model instances. Its core API (`baker.make()`, `baker.prepare()`, recipes) eliminates boilerplate in test setup while remaining flexible through overrides, sequences, callables, and custom generators. The codebase demonstrates high craftsmanship: a clean separation between field/value generation (`random_gen.py`), attribute classification (`Baker._classify_attrs`), and recipe composition (`recipe.py`). It supports nearly all Django field types, relationships (FK, M2M, O2O, GFK), bulk creation, multi-database setups, and model validation (`_full_clean`). The library is actively maintained with modern tooling (uv, ruff, ty, tox-uv) and follows semantic versioning.