Comparison
django-dynamic-fixture vs factory-boy vs mixer vs polyfactory
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A full library to create dynamic model instances for testing purposes.
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install django-dynamic-fixtureA 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-boyMixer -- Is a fixtures replacement. Supported Django ORM, SqlAlchemy ORM, Mongoengine ODM and custom python objects.
Low maintenance activity. Last release over 4 years ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install mixerMock data generation factories
Actively maintained. Last release 6 weeks ago, commits in 10 of the last 26 weeks. A safe choice.
pip install polyfactoryIn short
- django-dynamic-fixture is slowing down (last release over 3 years ago): fine for existing code, risky for a new project.
- factory-boy is the most used: 25.3M downloads a month, 1.9× more than polyfactory.
- polyfactory is better maintained: Pythie’s Index 76 against 27.
- mixer is growing fastest: downloads +26% over the last month.
Side by side
| Metric | django-dynamic-fixture | factory-boy | mixer | polyfactory |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 19 | 27 |