Ross ROSS = Recommend OSS · open-source software intelligence for agents

litestar-org/polyfactory

Simple and powerful factories for mock data generation observed · 2026-08-28

github.com/litestar-org/polyfactory · homepage · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

89/100

  • Activity 99
  • Release rhythm 71
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 28
  • age_days: 1754
  • days_rel: 192
  • days_push: 9
  • n_releases_24m: 16

Full methodology

Adoption not part of the score

1501 stars · 118 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

Polyfactory is a Python library that generates mock data from type hints, supporting frameworks like Pydantic, dataclasses, TypedDict, attrs, msgspec, and SQLAlchemy models. It provides simple, declarative factories for creating realistic test fixtures and sample data.

Use cases

  • generate mock data for pydantic models in tests
  • create test fixtures from dataclasses automatically
  • generate fake data for sqlalchemy models
  • mock data generation for typeddict and msgspec
  • seed databases with realistic sample data
  • auto-generate test payloads for api testing

When to choose

  • you need type-aware mock data for Python models in tests
  • you use Pydantic, dataclasses, attrs, msgspec, or SQLAlchemy and want automatic fixtures
  • you want to replace hand-written factory boilerplate

When to avoid

  • you need mock data for non-Python typed models
  • you only need simple random strings without type awareness
  • you need production-grade synthetic data with strict privacy guarantees

Facets

library · maturity active

data-generation testing mocking testing developer-tools data-science python cross-platform pydantic dataclasses typeddict msgspec attrs sqlalchemy beanie odmantic fixture-generation fake-data

3 sources

Member repositories

RepositoryRoleHealth v2
litestar-org/polyfactorymain89

For agents

markdown · JSON · MCP: product_card(name="litestar-org/polyfactory")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem