# factory_boy

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


Source: https://findsoftware.frbit.cloud/factory-boy/
Last reviewed: 2026-11-08
Listed since: 2026-11-08

## Record

### Links

- home: https://factoryboy.readthedocs.io/en/stable/
- repository: https://github.com/FactoryBoy/factory_boy
- docs: https://factoryboy.readthedocs.io/en/stable/

### Identity

- status: active
- maintainer: The FactoryBoy project
- maintainerType: unknown
- parent: unknown
- firstRelease: 2010
- hqCountry: unknown

### Kind

- category: testing
- hosting: not applicable
- language: python
- runtime: python
- runtimeMin: python 3.8
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: unknown
- renderingModes: not applicable
- installMethod: pip, from PyPI

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 3
- latestReleaseDate: 2025-02-03

### Adoption

- githubStargazers: 3811
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 106
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 16150
- dependentPackages: 206

### Sources

- urls: https://factoryboy.readthedocs.io/en/stable/ (read 2026-11-08)
- urls: https://api.github.com/repos/FactoryBoy/factory_boy (read 2026-11-08)
- urls: https://github.com/FactoryBoy/factory_boy/blob/master/README.rst (read 2026-11-08)
- maintainer: https://github.com/FactoryBoy/factory_boy/blob/master/LICENSE (read 2026-11-08)
- firstRelease: https://pypi.org/pypi/factory_boy/json (read 2026-11-08)
- category: https://github.com/FactoryBoy/factory_boy/blob/master/README.rst (read 2026-11-08)
- language: https://api.github.com/repos/FactoryBoy/factory_boy (read 2026-11-08)
- runtime: https://pypi.org/pypi/factory_boy/json (read 2026-11-08)
- runtimeMin: https://pypi.org/pypi/factory_boy/json (read 2026-11-08)
- installMethod: https://github.com/FactoryBoy/factory_boy/blob/master/README.rst (read 2026-11-08)
- license: https://api.github.com/repos/FactoryBoy/factory_boy (read 2026-11-08)
- licenseModel: https://github.com/FactoryBoy/factory_boy/blob/master/LICENSE (read 2026-11-08)
- currentMajor: https://api.github.com/repos/FactoryBoy/factory_boy/tags (read 2026-11-08)
- latestReleaseDate: https://pypi.org/pypi/factory_boy/json (read 2026-11-08)
- githubStargazers: https://api.github.com/repos/FactoryBoy/factory_boy (read 2026-11-08)
- contributors: https://api.github.com/repos/FactoryBoy/factory_boy/contributors?per_page=1 (read 2026-11-08)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/pypi.org/packages/factory_boy (read 2026-11-08)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/pypi.org/packages/factory_boy (read 2026-11-08)

## Notes

factory_boy is a Python library for building test objects from declarative factory classes, a replacement for static test fixtures. Its [documentation](https://factoryboy.readthedocs.io/en/stable/) 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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
