# polyfactory

> Mock data generation factories

- **URL**: https://www.freshcrate.ai/projects/polyfactory
- **Author**: pypi
- **Category**: Frameworks
- **Latest version**: `3.3.0` (2026-04-21)
- **License**: MIT
- **Source**: https://github.com/litestar-org/polyfactory/releases/
- **Homepage**: https://pypi.org/project/polyfactory/
- **Language**: Python
- **GitHub**: 1,451 stars, 113 forks
- **Registry**: pypi (`polyfactory`)
- **Tags**: `attrs`, `dataclasses`, `msgspec`, `pydantic`, `pypi`, `sqlalchemy`

## Description

<!-- markdownlint-disable -->
<p align="center">
  <img src="https://github.com/litestar-org/branding/blob/473f54621e55cde9acbb6fcab7fc03036173eb3d/assets/Branding%20-%20PNG%20-%20Transparent/Polyfactory%20-%20Banner%20-%20Inline%20-%20Light.png?raw=true" alt="Polyfactory Logo - Light" width="100%" height="auto" />
</p>
<!-- markdownlint-restore -->

<div align="center">
<!-- prettier-ignore-start -->

| Project   |     | Status                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| --------- | :-- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| CI/CD     |     | [![Publish package](https://github.com/litestar-org/polyfactory/actions/workflows/publish.yml/badge.svg)](https://github.com/litestar-org/polyfactory/actions/workflows/publish.yml) [![ci](https://github.com/litestar-org/polyfactory/actions/workflows/ci.yml/badge.svg)](https://github.com/litestar-org/polyfactory/actions/workflows/ci.yml) [![pages-build-deployment](https://github.com/litestar-org/polyfactory/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/litestar-org/polyfactory/actions/workflows/pages/pages-build-deployment)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Quality   |     | [![codecov](https://codecov.io/github/litestar-org/polyfactory/graph/badge.svg?token=aVYkeEegRa)](https://codecov.io/github/litestar-org/polyfactory)

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `3.3.0` | 2026-04-21 | Low | Imported from PyPI (3.3.0) |
| `v3.3.0` | 2026-02-22 | Low | ## What's Changed * fix: improve test stability by @adhtruong in https://github.com/litestar-org/polyfactory/pull/813 * chore(deps): bump dawidd6/action-download-artifact from 11 to 12 by @dependabot[bot] in https://github.com/litestar-org/polyfactory/pull/815 * feat: add `__persistence__method__` to SQLAlchemyFactory by @AlexPetul in https://github.com/litestar-org/polyfactory/pull/818 * chore(deps): bump dawidd6/action-download-artifact from 12 to 13 by @dependabot[bot] in https://github.c |
| `v3.3.0` | 2026-02-22 | Low | ## What's Changed * fix: improve test stability by @adhtruong in https://github.com/litestar-org/polyfactory/pull/813 * chore(deps): bump dawidd6/action-download-artifact from 11 to 12 by @dependabot[bot] in https://github.com/litestar-org/polyfactory/pull/815 * feat: add `__persistence__method__` to SQLAlchemyFactory by @AlexPetul in https://github.com/litestar-org/polyfactory/pull/818 * chore(deps): bump dawidd6/action-download-artifact from 12 to 13 by @dependabot[bot] in https://github.c |
| `v3.3.0` | 2026-02-22 | Low | ## What's Changed * fix: improve test stability by @adhtruong in https://github.com/litestar-org/polyfactory/pull/813 * chore(deps): bump dawidd6/action-download-artifact from 11 to 12 by @dependabot[bot] in https://github.com/litestar-org/polyfactory/pull/815 * feat: add `__persistence__method__` to SQLAlchemyFactory by @AlexPetul in https://github.com/litestar-org/polyfactory/pull/818 * chore(deps): bump dawidd6/action-download-artifact from 12 to 13 by @dependabot[bot] in https://github.c |
| `v3.3.0` | 2026-02-22 | Low | ## What's Changed * fix: improve test stability by @adhtruong in https://github.com/litestar-org/polyfactory/pull/813 * chore(deps): bump dawidd6/action-download-artifact from 11 to 12 by @dependabot[bot] in https://github.com/litestar-org/polyfactory/pull/815 * feat: add `__persistence__method__` to SQLAlchemyFactory by @AlexPetul in https://github.com/litestar-org/polyfactory/pull/818 * chore(deps): bump dawidd6/action-download-artifact from 12 to 13 by @dependabot[bot] in https://github.c |
| `v3.3.0` | 2026-02-22 | Low | ## What's Changed * fix: improve test stability by @adhtruong in https://github.com/litestar-org/polyfactory/pull/813 * chore(deps): bump dawidd6/action-download-artifact from 11 to 12 by @dependabot[bot] in https://github.com/litestar-org/polyfactory/pull/815 * feat: add `__persistence__method__` to SQLAlchemyFactory by @AlexPetul in https://github.com/litestar-org/polyfactory/pull/818 * chore(deps): bump dawidd6/action-download-artifact from 12 to 13 by @dependabot[bot] in https://github.c |
| `v3.3.0` | 2026-02-22 | Low | ## What's Changed * fix: improve test stability by @adhtruong in https://github.com/litestar-org/polyfactory/pull/813 * chore(deps): bump dawidd6/action-download-artifact from 11 to 12 by @dependabot[bot] in https://github.com/litestar-org/polyfactory/pull/815 * feat: add `__persistence__method__` to SQLAlchemyFactory by @AlexPetul in https://github.com/litestar-org/polyfactory/pull/818 * chore(deps): bump dawidd6/action-download-artifact from 12 to 13 by @dependabot[bot] in https://github.c |
| `v3.3.0` | 2026-02-22 | Low | ## What's Changed * fix: improve test stability by @adhtruong in https://github.com/litestar-org/polyfactory/pull/813 * chore(deps): bump dawidd6/action-download-artifact from 11 to 12 by @dependabot[bot] in https://github.com/litestar-org/polyfactory/pull/815 * feat: add `__persistence__method__` to SQLAlchemyFactory by @AlexPetul in https://github.com/litestar-org/polyfactory/pull/818 * chore(deps): bump dawidd6/action-download-artifact from 12 to 13 by @dependabot[bot] in https://github.c |
| `v3.3.0` | 2026-02-22 | Low | ## What's Changed * fix: improve test stability by @adhtruong in https://github.com/litestar-org/polyfactory/pull/813 * chore(deps): bump dawidd6/action-download-artifact from 11 to 12 by @dependabot[bot] in https://github.com/litestar-org/polyfactory/pull/815 * feat: add `__persistence__method__` to SQLAlchemyFactory by @AlexPetul in https://github.com/litestar-org/polyfactory/pull/818 * chore(deps): bump dawidd6/action-download-artifact from 12 to 13 by @dependabot[bot] in https://github.c |
| `v3.3.0` | 2026-02-22 | Low | ## What's Changed * fix: improve test stability by @adhtruong in https://github.com/litestar-org/polyfactory/pull/813 * chore(deps): bump dawidd6/action-download-artifact from 11 to 12 by @dependabot[bot] in https://github.com/litestar-org/polyfactory/pull/815 * feat: add `__persistence__method__` to SQLAlchemyFactory by @AlexPetul in https://github.com/litestar-org/polyfactory/pull/818 * chore(deps): bump dawidd6/action-download-artifact from 12 to 13 by @dependabot[bot] in https://github.c |

## Citation

- HTML: https://www.freshcrate.ai/projects/polyfactory
- Markdown: https://www.freshcrate.ai/projects/polyfactory.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/polyfactory/deps

_Generated by freshcrate.ai. Indexes pypi releases for AI-agent ecosystem packages._
