FactoryBoy/factory_boy
A test fixtures replacement for Python observed · 2026-08-28
Health v2 · maintenance only
59/100
- Activity 60
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5593
- days_rel: n/a
- days_push: 244
- n_releases_24m: 0
Adoption not part of the score
3804 stars · 420 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
factory_boy is a Python test fixtures replacement inspired by Ruby's factory_bot. It lets developers define declarative factories for creating test objects, working well with ORMs like Django, SQLAlchemy, and MongoDB.
Use cases
- generate test data for django models
- replace static fixtures in python tests
- create test objects with only test-specific fields
- build test fixtures for sqlalchemy
- set up complex object graphs in unit tests
- create mock users and orders for integration tests
When to choose
- you maintain repetitive, hard-to-update static test fixtures
- your tests need many variations of model instances
- you use Django, SQLAlchemy, or MongoDB and want ORM-aware factories
When to avoid
- you only need simple hardcoded test constants
- your project is not in Python
- you prefer property-based or random data generation over declarative factories
Facets
library · maturity stable
testing mocking data-generation testing developer-tools web-development python test-fixtures factory-pattern django sqlalchemy orm
2 sources
- readme: https://github.com/FactoryBoy/factory_boy · fetched 2026-08-28 · b0a48d8ed205
- registry_pypi: https://pypi.org/pypi/factory_boy/json · fetched 2026-08-29 · ab6adc0605db
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| FactoryBoy/factory_boy | main | 59 |
For agents
markdown · JSON · MCP: product_card(name="FactoryBoy/factory_boy")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem