FindSoftware

factory_boy

Python library that builds test objects from declarative factory classes, as a replacement for static test fixtures.

factory_boy is a Python library for building test objects from declarative factory classes, a replacement for static test fixtures. Its documentation describes factories for Django, Mogo, MongoEngine and SQLAlchemy models, and its random values come from Faker through factory.Faker.

The project describes itself as based on thoughtbot’s factory_bot, the Ruby library. The Credits page names Jeff Widman and Raphaël Barrois as the people who operate and maintain the project, and the LICENSE file names The FactoryBoy project as copyright holder.

Identity

Status
Active
Maintainer
The FactoryBoy project4
First release
20105

Rendering and deploy

Install with
pip, from PyPI3

Releases

Current major version
36
Last release
2025-02-035

Adoption

GitHub stars
3,8112
Contributors
1067
Dependent repositories
16,1508
Dependent packages
2068

Why these figures do not compare

Sources

  1. 2026-11-08: links
    factoryboy.readthedocs.io/en/stable/
  2. 2026-11-08: links, Written in, License, GitHub stars
    api.github.com/repos/FactoryBoy/factory_boy
  3. 2026-11-08: links, Categories, Install with
    github.com/FactoryBoy/factory_boy/blob/master/README.rst
  4. 2026-11-08: Maintainer, License model
    github.com/FactoryBoy/factory_boy/blob/master/LICENSE
  5. 2026-11-08: First release, Runtime, Minimum runtime, Last release
    pypi.org/pypi/factory_boy/json
  6. 2026-11-08: Current major version
    api.github.com/repos/FactoryBoy/factory_boy/tags
  7. 2026-11-08: Contributors
    api.github.com/repos/FactoryBoy/factory_boy/contributors?per_page=1
  8. 2026-11-08: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/pypi.org/packages/factory_boy

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON