Comparison
factory-boy vs model-bakery vs polyfactory
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A versatile test fixtures replacement based on thoughtbot's factory_bot for Ruby.
Low maintenance activity. Last release 22 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install factory-boySmart object creation facility for Django.
Actively maintained. Last release 2 weeks ago, commits in 22 of the last 26 weeks. A safe choice.
$
pip install model-bakeryMock data generation factories
Actively maintained. Last release 6 weeks ago, commits in 9 of the last 26 weeks. A safe choice.
$
pip install polyfactoryIn short
- factory-boy is the most used: 25.1M downloads a month, 1.9× more than polyfactory.
- model-bakery is better maintained: Pythie’s Index 91 against 27.
Side by side
| Metric | factory-boy | model-bakery | polyfactory |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 27 | Pythie’s Index: 91 | Pythie’s Index: 74 |
| Verdict | Low maintenance activity | Actively maintained | Actively maintained |
| Downloads / month | 25.1M | 2.1M | 13.1M |
| Downloads, month over month | +6% | +8% | +4% |
| GitHub stars | 3.8K | 1K | 1.5K |
| Stars, last 7 days | – | – | – |
| Direct dependents | 127 | 12 | 34 |
| Last release | Feb 3, 2025 | Nov 17, 2026 | Oct 21, 2026 |
| Releases, 12 months | 0 | 13 | 4 |
| Weeks with commits | 0 / 26 | 22 / 26 | 9 / 26 |
| Recent contributors | 17 | 10 | 18 |
| First release | Aug 2010 | Oct 2019 | Apr 2023 |
| Python versions | 3.9 – 3.13 | 3.11 – 3.15 | 3.9 – 3.15 |
| License | MIT | Apache-2.0 | MIT |
| Known vulnerabilities | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.