Polyfactory

Latest version: v2.15.0

Safety actively analyzes 623187 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

2.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-org/polyfactory/pull/502
* fix: constrained unions by guacs in https://github.com/litestar-org/polyfactory/pull/499

New Features 🚀
* feat: support Pydantic v1 and v2 simultaneously by guacs in https://github.com/litestar-org/polyfactory/pull/492

Docs 📚
* docs: fix typo on use_defaults by TimDumol in https://github.com/litestar-org/polyfactory/pull/497

New Contributors
* TimDumol made their first contribution in https://github.com/litestar-org/polyfactory/pull/497
* cofin made their first contribution in https://github.com/litestar-org/polyfactory/pull/502

**Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.14.1...v2.15.0

2.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/pull/491

**Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.14.0...v2.14.1

2.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://github.com/litestar-org/polyfactory/pull/472
* Add support for recursive models by adhtruong in https://github.com/litestar-org/polyfactory/pull/468
* Add support for Python 3.12 type alias syntax by adhtruong in https://github.com/litestar-org/polyfactory/pull/487

Fixes 🔧
* Pin `typing-extensions` to a minimum version of 4.6.0 by hsorsky in https://github.com/litestar-org/polyfactory/pull/471
* Set as default type for factory only if model is defined by guacs in https://github.com/litestar-org/polyfactory/pull/479
* Properly pass factory configurations to child factories by adhtruong in https://github.com/litestar-org/polyfactory/pull/483

Docs 📚
* Fix broken uri by wer153 in https://github.com/litestar-org/polyfactory/pull/485
* Fix code block by wer153 in https://github.com/litestar-org/polyfactory/pull/484

Infra 🚆
* Update pre commit hooks versions by guacs in https://github.com/litestar-org/polyfactory/pull/478
* Bump actions/cache from 3 to 4 by dependabot in https://github.com/litestar-org/polyfactory/pull/488

New Contributors
* hsorsky made their first contribution in https://github.com/litestar-org/polyfactory/pull/471
* wer153 made their first contribution in https://github.com/litestar-org/polyfactory/pull/485

**Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.13.0...v2.14.0

2.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 `flatten_annotation` by sam-or in https://github.com/litestar-org/polyfactory/pull/440
* Don't blindly suppress ValueError by guacs in https://github.com/litestar-org/polyfactory/pull/450

New Contributors
* Mityuha made their first contribution in https://github.com/litestar-org/polyfactory/pull/452

**Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.12.0...v2.13.0

2.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 in https://github.com/litestar-org/polyfactory/pull/390

Fixes 🔧
* Handle cases where 'init=False' for dataclasses and attrs models by guacs in https://github.com/litestar-org/polyfactory/pull/433
* Correctly handle collections with constrained items by guacs in https://github.com/litestar-org/polyfactory/pull/436

New Contributors
* g0di made their first contribution in https://github.com/litestar-org/polyfactory/pull/429
* sam-or made their first contribution in https://github.com/litestar-org/polyfactory/pull/390

**Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.11.0...v2.12.0

2.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` collection params by adhtruong in https://github.com/litestar-org/polyfactory/pull/417

Fixes 🔧
* Handle `Required` and `NonRequired` annotations in `TypedDict` by guacs in https://github.com/litestar-org/polyfactory/pull/422
* Respect override of optional nested model fields through `kwargs` passed to the `build` method by julioolvr in https://github.com/litestar-org/polyfactory/pull/420

Infra 🚆
* Update installation of dependencies for document generation by adhtruong in https://github.com/litestar-org/polyfactory/pull/414

Documentation 📚
* Reorder documentation and add documentation on factories as fields by adhtruong in https://github.com/litestar-org/polyfactory/pull/418

New Contributors
* johnraz made their first contribution in https://github.com/litestar-org/polyfactory/pull/405
* julioolvr made their first contribution in https://github.com/litestar-org/polyfactory/pull/420

**Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.10.0...v2.11.0

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.