factory_boy
Python library that builds test objects from declarative factory classes, as a replacement for static test fixtures.
factoryboy.readthedocs.io/en/stable/repositorydocs
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.
Sources
- 2026-11-08: links
factoryboy.readthedocs.io/en/stable/ - 2026-11-08: links, Written in, License, GitHub stars
api.github.com/repos/FactoryBoy/factory_boy - 2026-11-08: links, Categories, Install with
github.com/FactoryBoy/factory_boy/blob/master/README.rst - 2026-11-08: Maintainer, License model
github.com/FactoryBoy/factory_boy/blob/master/LICENSE - 2026-11-08: First release, Runtime, Minimum runtime, Last release
pypi.org/pypi/factory_boy/json - 2026-11-08: Current major version
api.github.com/repos/FactoryBoy/factory_boy/tags - 2026-11-08: Contributors
api.github.com/repos/FactoryBoy/factory_boy/contributors?per_page=1 - 2026-11-08: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/pypi.org/packages/factory_boy