Polyfactory
Generate realistic mock data and test fixtures from data models and schemas.
Testing PyPI MIT
How Polyfactory is used
Polyfactory joined the catalog on its public numbers (2,833,323 downloads a week on PyPI and 1,516 GitHub stars), not on our project count: it is a dependency in 11 public GitHub projects of our scan, 0 of them set up for AI coding agents. The most used alternative in our scan is Faker (14 projects). Projects that use it most often also use AnyIO (100.0%), charset-normalizer (100.0%), Click (100.0%).
Polyfactory popularity over time
Gid Score 44: downloads 74, use in agent projects 19, GitHub stars 18, downloads trend 63 (each 0-100). How it is calculated.
Often used with Polyfactory
| AnyIO | 100.0% of Polyfactory projects · 67.5× more than average |
|---|---|
| charset-normalizer | 100.0% of Polyfactory projects · 92.7× more than average |
| Click | 100.0% of Polyfactory projects · 40.1× more than average |
| Faker | 100.0% of Polyfactory projects · 443.4× more than average |
| jiter | 100.0% of Polyfactory projects · 214.1× more than average |
| markdown-it-py | 100.0% of Polyfactory projects · 135.0× more than average |
How Polyfactory is funded
Open Collective: Litestar
| Received, last 12 months | $950 Oct 2025 – Sep 2026 |
|---|---|
| Estimated annual budget | $1,124 Open Collective's estimate |
| Balance | $5,244 |
| Raised since the start | $8,357 · $3,113 paid out |
| Typical month median, last 12 months | $69 · $180 over 24 months |
| Last 12 months vs the 12 before | -71% |
| Contributors, last 12 months | 2 |
Top company backers all time
| Polar.sh | $254 since Jul 2024 |
|---|
May 2023Sep 2026
Money by month. First money received in May 2023. The typical month is the median: one big one-off donation does not move it.
USD after payment processor fees, as Open Collective reports it; fiscal host Open Source Collective. Source
GitHub Sponsors
| @litestar-org | 7 current sponsors |
|---|
GitHub shows how many people and companies sponsor an account, not how much they pay.
Ways to fund Polyfactory
GitHub Sponsors Open Collective
As the maintainers list them in FUNDING.yml on GitHub. Checked Oct 20, 2026.
Install
| Package | pip install polyfactory |
|---|---|
| Main stacks | Python (11) |
| Example projects | Pythonando/arcabe3-completo, jenarvaezg/cunhaobot |
Alternatives to Polyfactory
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside Polyfactory are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| Faker pypi Generate realistic fake data for testing and development. |
68 | 14 (0.9%) | 17M | 19.4K | MIT |
| Hypothesis pypi Property-based testing framework for Python with powerful shrinking. |
61 | 5 (0.3%) | 14.6M | 9,094 | MPL-2.0 |
| factory_boy pypi · new in the catalog Test fixtures replacement for Python, modelled on Ruby's factory_bot. |
47 | 4 (0.2%) | 5.4M | 3,811 | MIT |
More in Testing: Vitest Playwright (JavaScript) Testing Library jsdom Jest pytest Happy DOM axe-core Playwright