Skip to content
Agents tracked: 440 Downloads (7d): 202M down 19.5% GitHub stars: 10.4M Releases (7d): 607 Agent status: all upSince last limit reset: Claude 28d · Codex 0d Updated Oct 21, 2026

factory_boy

Test fixtures replacement for Python, modelled on Ruby's factory_bot.

Testing PyPI MIT

Used in agent projects
4
0.2% of 1,622 Python repos built with AI coding agents
Gid Score
47 /100
#1764 of 3,794 tools, #45 in testing · ranking
In the catalog because
Public numbers
downloads and GitHub stars, added Oct 13, 2026; too rare in our project count to rank by use
Downloads
5.4M
PyPI, last 7 days, factory-boy
GitHub stars
3,811
424 forks · last push Jan 1, 2026

How factory_boy is used

factory_boy joined the catalog on its public numbers (5,439,761 downloads a week on PyPI and 3,811 GitHub stars), not on our project count: it is a dependency in 7 public GitHub projects of our scan, 4 of them set up for AI coding agents. Projects that use it most often also use pytest (100.0%), Black (85.7%), FAISS (85.7%).

factory_boy popularity over time

Top tools by Gid Score

factory_boy: downloads per weekPyPI, factory-boy 5,271,298
factory_boy: GitHub starsFactoryBoy/factory_boy 3,811

Gid Score 47: downloads 80, use in agent projects 12, GitHub stars 34, downloads trend 53 (each 0-100). How it is calculated.

Often used with factory_boy

pytest100.0% of factory_boy projects · 24.3× more than average
Black85.7% of factory_boy projects · 68.2× more than average
FAISS85.7% of factory_boy projects · 126.7× more than average
mypy85.7% of factory_boy projects · 113.2× more than average
Pydantic85.7% of factory_boy projects · 9.9× more than average
PyYAML85.7% of factory_boy projects · 14.4× more than average
Sentence Transformers85.7% of factory_boy projects · 64.9× more than average
FastAPI71.4% of factory_boy projects · 9.5× more than average

Install

Packagepip install factory-boy
Main stacksPython (7)

Alternatives to factory_boy

All testing

In our scan, none of the most used tools in Testing does the same job as factory_boy: they are add-ons, companions or tools for a different task.

More in Testing: Vitest Playwright (JavaScript) Testing Library jsdom Jest pytest Happy DOM axe-core Playwright

Is factory_boy right for your project? Ask AgentGid →