freshcrate
Home > Frameworks > polyfactory

polyfactory

Mock data generation factories

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)

Release History

VersionChangesUrgencyDate
3.3.0Imported from PyPI (3.3.0)Low4/21/2026
v3.3.0## 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.cLow2/22/2026
v3.2.0## What's Changed * chore: remove unused models by @AlexPetul in https://github.com/litestar-org/polyfactory/pull/794 * fix: Respect `init` parameter for SQLAlchemy dataclasses by @AlexPetul in https://github.com/litestar-org/polyfactory/pull/793 * chore(deps): bump actions/checkout from 5 to 6 by @dependabot[bot] in https://github.com/litestar-org/polyfactory/pull/789 * refactor: update pre-commit by @adhtruong in https://github.com/litestar-org/polyfactory/pull/797 * feat: support ZoneInfLow12/21/2025
v3.1.0## What's Changed * perf: micro-optimize `BaseFactory._infer_model_type` by @sobolevn in https://github.com/litestar-org/polyfactory/pull/731 * ci: add test_success to simplify PR check by @adhtruong in https://github.com/litestar-org/polyfactory/pull/780 * feat: support NotRequired fields in TypedDictFactory by @adhtruong in https://github.com/litestar-org/polyfactory/pull/785 * feat: support for custom `collection_class` in SQLAlchemy relationships by @AlexPetul in https://github.com/litesLow11/25/2025
v3.0.0## What's Changed * chore: v3 release by @adhtruong in https://github.com/litestar-org/polyfactory/pull/720 **Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.22.5...v3.0.0Low11/15/2025
v2.22.5## What's Changed * fix: Use correct field_meta for constrained union types when building field values for coverage by @bullfest in https://github.com/litestar-org/polyfactory/pull/770 * docs: add bullfest as a contributor for code by @allcontributors[bot] in https://github.com/litestar-org/polyfactory/pull/777 * chore: prepare v2.22.5 release by @adhtruong in https://github.com/litestar-org/polyfactory/pull/778 ## New Contributors * @bullfest made their first contribution in https://githLow11/15/2025
v2.22.4## What's Changed * docs: fix typo in pydantic_factory.coverage doc string by @RasmusNygren in https://github.com/litestar-org/polyfactory/pull/763 * docs: add RasmusNygren as a contributor for doc by @allcontributors[bot] in https://github.com/litestar-org/polyfactory/pull/766 * fix: model coverage generation and __use_examples__ do not compose well by @arembridge in https://github.com/litestar-org/polyfactory/pull/757 * docs: add arembridge as a contributor for code by @allcontributors[botLow11/10/2025
v2.22.3## What's Changed * chore(deps): bump actions/checkout from 4 to 5 by @dependabot[bot] in https://github.com/litestar-org/polyfactory/pull/740 * chore(deps): bump amannn/action-semantic-pull-request from 5 to 6 by @dependabot[bot] in https://github.com/litestar-org/polyfactory/pull/741 * chore(deps): bump actions/download-artifact from 4 to 5 by @dependabot[bot] in https://github.com/litestar-org/polyfactory/pull/739 * chore(deps): bump actions/github-script from 7 to 8 by @dependabot[bot] iLow10/18/2025
v2.22.2## What's Changed * fix: pydantic alias handling by @adhtruong in https://github.com/litestar-org/polyfactory/pull/737 * fix: allow specifying forward references when as string by @adhtruong in https://github.com/litestar-org/polyfactory/pull/735 * chore(release): bump to v2.22.2 by @adhtruong in https://github.com/litestar-org/polyfactory/pull/738 **Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.22.1...v2.22.2Low8/15/2025
v2.22.1## What's Changed * fix: handle recursive types that use ForwardRef by @adhtruong in https://github.com/litestar-org/polyfactory/pull/728 * fix: deprecation error not silenced when overridden by @adhtruong in https://github.com/litestar-org/polyfactory/pull/724 * chore(release): bump to v2.22.1 by @adhtruong in https://github.com/litestar-org/polyfactory/pull/732 **Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.22.0...v2.22.1Low7/14/2025
v2.22.0## What's Changed * chore: remove usage of _AnnotatedAlias by @adhtruong in https://github.com/litestar-org/polyfactory/pull/693 * chore: warn on deprecated parameter usage by @adhtruong in https://github.com/litestar-org/polyfactory/pull/689 * feat: Allow usage of Pydantic models containing forward references by @marcuslimdw in https://github.com/litestar-org/polyfactory/pull/698 * chore(deps): bump astral-sh/setup-uv from 5 to 6 by @dependabot in https://github.com/litestar-org/polyfactoLow7/1/2025
v2.21.0# Sponsors 🌟 A huge 'Thank you!' to all other sponsors across [Polar.sh](https://polar.sh/litestar-org), [OpenCollective](https://opencollective.com/litestar) and [GitHub Sponsors](https://github.com/sponsors/litestar-org/)! ## What's Changed ### Bug Fixes ([4ae69c8](https://github.com/litestar-org/polyfactory/commit/4ae69c81c61e70269c004794abf3abca31700e87)) - Handle pydantic v1 URL and email correctly (#685) by [@Xdynix](https://github.com/Xdynix) in [#685](https://github.com/liteLow4/18/2025
v2.20.0# Sponsors 🌟 A huge 'Thank you!' to all other sponsors across [Polar.sh](https://polar.sh/litestar-org), [OpenCollective](https://opencollective.com/litestar) and [GitHub Sponsors](https://github.com/sponsors/litestar-org/)! ## What's Changed ###Β New Features πŸš€ * feat: described an ability to use async data in factory fields; refactored factories/base and some tests by @nisemenov in https://github.com/litestar-org/polyfactory/pull/641 * feat: simplify pytest plugin by @adhtruong iLow3/21/2025
v2.19.0# Sponsors 🌟 Thanks to these incredible business sponsors: [Scalar](https://scalar.com/) (@scalar), [Telemetry Sports](https://telemetrysports.com/) (via @chris-telemetry), [Stok](https://www.stok.kr/) (@stok-team) A huge 'Thank you!' to all other sponsors across [Polar.sh](https://polar.sh/litestar-org), [OpenCollective](https://opencollective.com/litestar) and [GitHub Sponsors](https://github.com/sponsors/litestar-org/)! ## What's Changed ### New Features πŸš€ * feat(sqla_factoLow1/29/2025
v2.18.1# Sponsors 🌟 Thanks to these incredible business sponsors: [Scalar](https://scalar.com/) (@scalar), [Telemetry Sports](https://telemetrysports.com/) (via @chris-telemetry), [Stok](https://www.stok.kr/) (@stok-team) A huge 'Thank you!' to all other sponsors across [Polar.sh](https://polar.sh/litestar-org), [OpenCollective](https://opencollective.com/litestar) and [GitHub Sponsors](https://github.com/sponsors/litestar-org/)! ## What's Changed * fix: handle nullable SQLA constraints byLow11/26/2024
v2.18.0# Sponsors 🌟 Thanks to these incredible business sponsors: [Scalar](https://scalar.com/) (@scalar), [Telemetry Sports](https://telemetrysports.com/) (via @chris-telemetry), [Stok](https://www.stok.kr/) (@stok-team) A huge 'Thank you!' to all other sponsors across [Polar.sh](https://polar.sh/litestar-org), [OpenCollective](https://opencollective.com/litestar) and [GitHub Sponsors](https://github.com/sponsors/litestar-org/)! # What's Changed ## New Features πŸš€ * Handle SQLA column Low11/6/2024
v2.17.0# Sponsors 🌟 Thanks to these incredible business sponsors: [Scalar](https://scalar.com/) (@scalar), [Telemetry Sports](https://telemetrysports.com/) (via @chris-telemetry), [Stok](https://www.stok.kr/) (@stok-team) A huge 'Thank you!' to all other sponsors across [Polar.sh](https://polar.sh/litestar-org), [OpenCollective](https://opencollective.com/litestar) and [GitHub Sponsors](https://github.com/sponsors/litestar-org/)! ## What's Changed * fix: constrained 0 length lists by @marcLow9/22/2024
v2.16.2# Sponsors 🌟 Thanks to these incredible business sponsors: [Scalar](https://scalar.com/) (@scalar), [Telemetry Sports](https://telemetrysports.com/) (via @chris-telemetry), [Stok](https://www.stok.kr/) (@stok-team) A huge 'Thank you!' to all other sponsors across [Polar.sh](https://polar.sh/litestar-org), [OpenCollective](https://opencollective.com/litestar) and [GitHub Sponsors](https://github.com/sponsors/litestar-org/)! # What's Changed ## Fixes πŸ”§ * Nested model in collectionLow7/9/2024
v2.16.1# Sponsors 🌟 Thanks to these incredible business sponsors: [Scalar](https://scalar.com/) (@scalar), [Telemetry Sports](https://telemetrysports.com/) (via @chris-telemetry), [Stok](https://www.stok.kr/) (@stok-team) A huge 'Thank you!' to all other sponsors across [Polar.sh](https://polar.sh/litestar-org), [OpenCollective](https://opencollective.com/litestar) and [GitHub Sponsors](https://github.com/sponsors/litestar-org/)! # What's Changed ## New Contributors * @Alc-Alc made theiLow7/8/2024
v2.16.0## Sponsors 🌟 Thanks to these incredible business sponsors: [Scalar](https://scalar.com/) (@scalar), [Telemetry Sports](https://telemetrysports.com/) (via @chris-telemetry), [Stok](https://www.stok.kr/) (@stok-team) A huge 'Thank you!' to all other sponsors across [Polar.sh](https://polar.sh/litestar-org), [OpenCollective](https://opencollective.com/litestar) and [GitHub Sponsors](https://github.com/sponsors/litestar-org/)! ## What's Changed ### New Contributors * @wangxin688 madLow5/13/2024
v2.15.0# ❀️ Sponsors ❀️ [GitHub Sponsors](https://github.com/sponsors/litestar-org/): [Scalar](https://scalar.com/), [Telemetry Sports](https://telemetrysports.com/) (via @chris-telemetry), [Stok](https://www.stok.kr/) (https://github.com/stok-team), @benjamin-kirkbride, @crisog, @geeshta, @cbscsm [OpenCollective](https://opencollective.com/litestar): Christian Y, Anonymous # What's Changed ## Fixes πŸ”§ * fix: prefer `sqlalchemy.type.impl` if it exists by @cofin in https://github.com/litestar-oLow3/2/2024
v2.14.1❀️ Sponsors ❀️ [GitHub Sponsors](https://github.com/sponsors/litestar-org/): [Scalar](https://scalar.com/), [Telemetry Sports](https://telemetrysports.com/) (via @chris-telemetry), [Stok](https://www.stok.kr/) (https://github.com/stok-team), @benjamin-kirkbride, @crisog, @geeshta, @cbscsm [OpenCollective](https://opencollective.com/litestar): Christian Y, Anonymous # What's Changed ## Fixes πŸ”§ * Fix the handling of union types by @guacs in https://github.com/litestar-org/polyfactory/pulLow1/20/2024
v2.14.0# ❀️ Sponsors ❀️ [GitHub Sponsors](https://github.com/sponsors/litestar-org/): [Scalar](https://scalar.com/), [Telemetry Sports](https://telemetrysports.com/) (via @chris-telemetry), [Stok](https://www.stok.kr/) (@stok-team), @benjamin-kirkbride, @crisog, @geeshta, @cbscsm [OpenCollective](https://opencollective.com/litestar): Christian Y, Anonymous # What's Changed ## New Features πŸš€ * Use the default value if available and `__use_default__` is set to `True` by @guacs in https://githubLow1/19/2024
v2.13.0# ❀️ Sponsors ❀️ [GitHub Sponsors](https://github.com/sponsors/litestar-org/): [Scalar](https://scalar.com/), [Telemetry Sports](https://telemetrysports.com/) (via @chris-telemetry) @benjamin-kirkbride @crisog @geeshta [OpenCollective](https://opencollective.com/litestar): Christian Y, Anonymous # What's Changed ## New Features πŸš€ * Infer `__model__` from generic type args by @Mityuha in https://github.com/litestar-org/polyfactory/pull/452 ## Fixes πŸ”§ * Handle Optional types in `flattLow12/19/2023
v2.12.0# ❀️ Sponsors ❀️ [GitHub Sponsors](https://github.com/sponsors/litestar-org/): [Telemetry Sports](https://telemetrysports.com/) (via @chris-telemetry) @benjamin-kirkbride @crisog @geeshta [OpenCollective](https://opencollective.com/litestar): Christian Y, Anonymous # What's Changed ## New Features πŸš€ * Set `factory.__model__` as default for `model` argument in `create_factory` by @g0di in https://github.com/litestar-org/polyfactory/pull/429 * Model type coverage generation by @sam-or inLow11/13/2023
v2.11.0# πŸ’° Sponsors πŸ’° [GitHub Sponsors](https://github.com/sponsors/litestar-org/): @benjamin-kirkbride @crisog [OpenCollective](https://opencollective.com/litestar): Christian Y, Anonymous # What's Changed ## New Features πŸš€ * Check if fields declared on the factory belong to the model by @johnraz in https://github.com/litestar-org/polyfactory/pull/405 * Support annotation with `Constraints` by @guacs in https://github.com/litestar-org/polyfactory/pull/411 * Deprecate `FieldMeta` collectLow10/23/2023
v2.10.0# πŸ’° Sponsors πŸ’° [GitHub Sponsors](https://github.com/sponsors/litestar-org/): @benjamin-kirkbride @crisog [OpenCollective](https://opencollective.com/litestar): Christian Y, Anonymous # What's Changed ## New Features πŸš€ * Support SQLA14 by @adhtruong in https://github.com/litestar-org/polyfactory/pull/385 ## Fixes πŸ”§ * Properly resolve dataclass forward references by @guacs in https://github.com/litestar-org/polyfactory/pull/383 * Fix alternative version installation by @adhtruonLow10/16/2023
v2.9.0# πŸŽ‰ New Contributors πŸŽ‰ * @anthonyjgraff made their first contribution in https://github.com/litestar-org/polyfactory/pull/371 # πŸ’° Sponsors πŸ’° [GitHub Sponsors](https://github.com/sponsors/litestar-org/): @benjamin-kirkbride, @crisog [OpenCollective](https://opencollective.com/litestar): Christian Y, GitHub Sponsors, Shubham Prajapati, Snyk, Matteo # What's Changed ## New Features πŸš€ * Implement `sqlalchemy` factory by @adhtruong in https://github.com/litestar-org/polyfactory/pulLow9/19/2023
v2.8.2## πŸŽ‰ New Contributors πŸŽ‰ * @sobolevn made their first contribution in https://github.com/litestar-org/polyfactory/pull/361 ## πŸ’° Sponsors πŸ’° [GitHub Sponsors](https://github.com/sponsors/litestar-org/): @benjamin-kirkbride, @crisog [OpenCollective](https://opencollective.com/litestar): Christian Y, GitHub Sponsors, Shubham Prajapati, Snyk ## What's Changed ### πŸ”§ Fixes * fix: properly set annotation in union with Annotated constraints in subtypes by @guacs in https://github.com/Low9/16/2023
v2.8.1# What's Changed ## Fixes πŸ”§ * Add missing factories to builtin registration by @guacs in https://github.com/litestar-org/polyfactory/pull/351 ## Docs πŸ“„ * Explain all the factory configuration options by @adhtruong in https://github.com/litestar-org/polyfactory/pull/350 ## Infra πŸš† * Use full Python version for venv cache by @guacs in https://github.com/litestar-org/polyfactory/pull/352 * Bump actions/checkout from 3 to 4 by @dependabot in https://github.com/litestar-org/polyfactLow9/10/2023
v2.8.0# πŸŽ‰ New Contributors πŸŽ‰ * @185504a9 made their first contribution in https://github.com/litestar-org/polyfactory/pull/333 # What's Changed ## New Features πŸš€ * Added support for constraints for mapping types by @guacs in https://github.com/litestar-org/polyfactory/pull/337 * Added support for pydantic's date types by @185504a9 in https://github.com/litestar-org/polyfactory/pull/333 ## Fixes πŸ”§ * Ensure no override of Faker instance by @guacs in https://github.com/litestar-org/polLow8/26/2023
v2.7.2## Fixes πŸ”§ * fix: pydantic core import by @guacs in https://github.com/litestar-org/polyfactory/pull/329 **Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.7.1...v2.7.2Low8/9/2023
v2.7.1# πŸŽ‰ New Contributors πŸŽ‰ * @klimantje made their first contribution in https://github.com/litestar-org/polyfactory/pull/319 * @tcrasset made their first contribution in https://github.com/litestar-org/polyfactory/pull/323 # What's Changed ## Infra πŸš† * infra: fix communiity health files by @JacobCoffee in https://github.com/litestar-org/polyfactory/pull/322 ## Fixes πŸ”§ * fix: add support for Json type in Pydantic factory by @guacs in https://github.com/litestar-org/polyfactory/puLow8/8/2023
v2.7.0## What's Changed * infra: update codeowners by @JacobCoffee in https://github.com/litestar-org/polyfactory/pull/311 * feat: implementation of Attrs Factory by @guacs in https://github.com/litestar-org/polyfactory/pull/313 **Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.6.3...v2.7.0Low7/28/2023
v2.6.3## What's Changed * fix annotated field resolution by @Goldziher in https://github.com/litestar-org/polyfactory/pull/309 **Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.6.2...v2.6.3Low7/21/2023
v2.6.2## What's Changed ## Fixes * Fix random access on lower Python versions by @Goldziher in https://github.com/litestar-org/polyfactory/pull/301 * Switch to using faker.seed_instance by @Goldziher in https://github.com/litestar-org/polyfactory/pull/305 **Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.6.1...v2.6.2Low7/14/2023
v2.6.1# What's Changed ## πŸŽ‰ New Contributors πŸŽ‰ * @abdulhaq-e made their first contribution in https://github.com/litestar-org/polyfactory/pull/295 ## Fixes * Fix inheritance support for msgspec by @abdulhaq-e in https://github.com/litestar-org/polyfactory/pull/295 ## Documentation * docs: add abdulhaq-e as a contributor for code by @allcontributors in https://github.com/litestar-org/polyfactory/pull/297 **Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.6.0...Low7/10/2023
v2.6.0## What's Changed New Features πŸš€ * Support for configurable length sequence generation by @mdczaplicki in https://github.com/litestar-org/polyfactory/pull/189 Fixes πŸ”§ * Fix `const` not being used with pydantic v1 models. by @Goldziher in https://github.com/litestar-org/polyfactory/pull/293 **Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.5.0...v2.6.0Low7/9/2023
v2.5.0## What's Changed πŸŽ‰ Full [![Pydantic](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/JacobCoffee/482c716c1ee64bab9d073583c992503f/raw/2884be4b5144a284c9098d1f0abc28188ae1149a/pydantic.json)](https://pydantic.dev) Support with the it's official release: https://github.com/pydantic/pydantic/releases/tag/v2.0 πŸŽ‰ ### New Contributions πŸ₯‡ * @mdczaplicki as a contributor for test, and code by @allcontributors in https://github.com/litestar-org/polyfactory/pull/274 asLow6/30/2023
v2.4.0## What's Changed * Add: support for overriding base factories locally by @Goldziher in https://github.com/litestar-org/polyfactory/pull/238 * Fix: generation of list literals (#239) by @Simske in https://github.com/litestar-org/polyfactory/pull/240 * Fix: URL constraints and strict pydantic v2 values by @Goldziher in https://github.com/litestar-org/polyfactory/pull/241 ## New Contributors * @Simske made their first contribution in https://github.com/litestar-org/polyfactory/pull/240 *Low6/25/2023
v2.3.3## What's Changed * Unwrap annotation for URL types (#234) by @VSHUMILIN97 in https://github.com/litestar-org/polyfactory/pull/235 * Add VSHUMILIN97 as a contributor for code by @allcontributors in https://github.com/litestar-org/polyfactory/pull/237 * Refactor metadata extraction by @Goldziher in https://github.com/litestar-org/polyfactory/pull/236 ## New Contributors * @VSHUMILIN97 made their first contribution in https://github.com/litestar-org/polyfactory/pull/235 **Full Changelog*Low6/22/2023
v2.3.2## What's Changed * chore: fix constant constraints by @Goldziher in https://github.com/litestar-org/polyfactory/pull/233 **Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.3.1...v2.3.2Low6/18/2023
v2.3.1## What's Changed * Add a default value for `FieldMeta` `random` args by @provinzkraut in https://github.com/litestar-org/polyfactory/pull/232 **Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.3.0...v2.3.1Low6/18/2023
v2.3.0## What's Changed * Retrieve field types from result of `get_type_hints()`. by @peterschutt in https://github.com/litestar-org/polyfactory/pull/229 * Add pydantic V2 Support by @Goldziher in https://github.com/litestar-org/polyfactory/pull/222 **Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.2.0...v2.3.0Low6/18/2023
v2.2.0## What's Changed * Add msgspec.Struct factory by @guacs in https://github.com/litestar-org/polyfactory/pull/226 **Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.1.2...v2.2.0Low5/29/2023
v2.1.2## What's Changed * Bump requests from 2.30.0 to 2.31.0 by @dependabot in https://github.com/litestar-org/polyfactory/pull/219 * Include missing types in creating constrained field values by @guacs in https://github.com/litestar-org/polyfactory/pull/220 * docs: add guacs as a contributor for code by @allcontributors in https://github.com/litestar-org/polyfactory/pull/221 * fix type provider for UUID by @guacs in https://github.com/litestar-org/polyfactory/pull/224 ## New Contributors * @Low5/28/2023
v2.1.1## What's Changed * Fix handle_complex_type for Union of Literals by @gsakkis in https://github.com/litestar-org/polyfactory/pull/213 * Fix create_random_integer to include the upper bound by @gsakkis in https://github.com/litestar-org/polyfactory/pull/214 * Fix PydanticFieldMeta.from_model_field() for Optional fields by @gsakkis in https://github.com/litestar-org/polyfactory/pull/215 **Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.1.0...v2.1.1Low5/17/2023
v2.1.0## What's Changed ### New Features * Factory inheritance by @gsakkis in https://github.com/litestar-org/polyfactory/pull/203 * Add support for custom root types in Pydantic model factory by @Iipin in https://github.com/litestar-org/polyfactory/pull/210 * Enhancement: PostGenerated classmethods by @gsakkis in https://github.com/litestar-org/polyfactory/pull/204 ### Bug Fixes * Fix: Random union types for dict by @sygutss in https://github.com/litestar-org/polyfactory/pull/200 * Misc. fLow5/6/2023
v2.0.1## What's Changed ### New Features * Bson field support for odmantic models by @gsakkis in https://github.com/litestar-org/polyfactory/pull/193 ### Bug Fixes * Make polyfactory work with Ellipsis in dataclasses by @mdczaplicki in https://github.com/litestar-org/polyfactory/pull/183 * Fix missing f-string when raising `ConfigurationException` for unsupported model type by @przybylop in https://github.com/litestar-org/polyfactory/pull/186 ### Documentation * docs: add mdczaplicki as aLow4/28/2023
v2.0.0## What's Changed * Add constrained abstraction by @Goldziher in https://github.com/litestar-org/polyfactory/pull/175 **Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.0.0alpha1...v2.0.0Low4/16/2023
v2.0.0alpha1## What's Changed ### Bugfixes * Make `MissingDependencyException` a subclass of ImportError by @provinzkraut in https://github.com/litestar-org/polyfactory/pull/167 * Fix #164: Remove hard pytest dependency by @provinzkraut in https://github.com/litestar-org/polyfactory/pull/165 ### Documentation * Add documentation by @Goldziher in https://github.com/litestar-org/polyfactory/pull/156 * Add persistence examples by @Goldziher in https://github.com/litestar-org/polyfactory/pull/157 Low4/11/2023

Dependencies & License Audit

Loading dependencies...

Similar Packages

dataclass-wizardA wizard-like JSON serialization library for Python dataclasses0.39.1
cadwynProduction-ready community-driven modern Stripe-like API versioning in FastAPI6.2.2
openapi-pydanticPydantic OpenAPI schema implementation0.5.1
pre-commitA framework for managing and maintaining multi-language pre-commit hooks.v4.6.0
azure-core-tracing-opentelemetryMicrosoft Azure Azure Core OpenTelemetry plugin Library for Pythonazure-template_0.1.0b6187637