Frontend Frameworks

PolyFactory

Mock data generation library for Python classes and Pydantic models.

Status
Generally available
Last checked
Checked · Oct 10, 2026
License
Open source
Pricing
Free tier · from $0

What it is

PolyFactory is a powerful mock data generation library that supports Python classes and Pydantic models, making it easier to generate test data for development and testing purposes. It continues the legacy of `pydantic-factories` with enhanced features and support.

PolyFactory stands out by offering robust support for Python classes and Pydantic models, making it an ideal choice for developers who need precise control over their test data generation.

When it fits — and when it doesn’t

A good fit for

  • Developers working with Pydantic models who need to generate consistent and realistic test data

  • Teams building Python applications that require extensive testing and validation

  • Projects where manual data creation is time-consuming or impractical

Look elsewhere if

  • Applications requiring real-time data generation (PolyFactory focuses on static mock data)

  • Scenarios where the generated data needs to be highly customized beyond what PolyFactory offers out-of-the-box

Known weaknesses

Each one links to the public issue, changelog or docs page it came from, where we have one.

  1. 01

    Limited support for complex Pydantic models

    Difficulties in generating mock data for nested and recursive models

  2. 02

    Small community and limited third-party integrations

    Few community contributions and plugins compared to more established libraries like Faker

What it does well

  • Support for Python classes and Pydantic models

  • Enhanced mock data generation capabilities

  • Seamless integration with existing codebases

Pricing

Free tier
YesOpen source — free to use
Paid from
$0
Model
Flat rate
Enterprise plan
No

Pricing not independently confirmed — check the vendor’s page.

Performance benchmarks

How Fast Is It?

Set up PolyFactory

Setup steps, common gotchas and what to check after 30 days.

Open the setup guide →
Get the badge

A small badge for PolyFactory’s README or site: its name, “Tracked on AI Navigator”, and the availability status and check month from this page. It updates as the catalog does.

PolyFactory — tracked on AI Navigator

Markdown

[![PolyFactory — tracked on AI Navigator](https://navigateaitools.com/badge/polyfactory.svg)](https://navigateaitools.com/explorer/tool/polyfactory)

HTML

<a href="https://navigateaitools.com/explorer/tool/polyfactory"><img src="https://navigateaitools.com/badge/polyfactory.svg" alt="PolyFactory — tracked on AI Navigator" height="58"></a>