NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #1093 most downloaded on PyPI
Mock data generation factories
Last release 7 months ago
22 Feb 2026
Ships fairly regularly
a new release about every 4 weeks
Nearly every release is documented
notes for 49 of 49 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
52 releases · first in 2023
One column per quarter.
fix: improve test stability by @adhtruong in #813
__persistence__method__ to SQLAlchemyFactory by @AlexPetul in #818SQLAASyncPersistence by @AlexPetul in #826Full Changelog: v3.2.0...v3.3.0
530c192 ... 9fe33dd | See diff for 3.3.0
(f90cbcd) - Improve test stability (#813) by @adhtruong in #813
(9fe33dd) - Leave the async session opened after persisting data in SQLAASyncPersistence (#826) by @AlexPetul in #826
(e2eed27) - Add __persistence__method__ to SQLAlchemyFactory (#818) by @AlexPetul in #818
(c591600) - Add support for SQLAlchemy computed fields (#799) by @AlexPetul in #799
(aa6a403) - Bump dawidd6/action-download-artifact from 11 to 12 (#815) by @dependabot[bot] in #815
(8d2dad4) - Bump dawidd6/action-download-artifact from 12 to 13 (#821) by @dependabot[bot] in #821
(2549140) - Bump urllib3 from 2.5.0 to 2.6.3 (#823) by @dependabot[bot] in #823
(cd48c81) - Bump wheel from 0.45.1 to 0.46.2 (#822) by @dependabot[bot] in #822
(2c36e7d) - Bump dawidd6/action-download-artifact from 13 to 14 (#825) by @dependabot[bot] in #825
chore: remove unused models by @AlexPetul in #794
init parameter for SQLAlchemy dataclasses by @AlexPetul in #793scoped_session and async_scoped_session to type annotations by @AlexPetul in #800Full Changelog: v3.1.0...v3.2.0
2eff4e1 ... 530c192 | See diff for 3.2.0
(a05f7e6) - Respect init parameter for SQLAlchemy dataclasses (#793) by @AlexPetul in #793
(6ca6daa) - Add scoped_session and async_scoped_session to type annotations (#800) by @AlexPetul in #800
(a2e6f99) - Update literal detection for 3.14 compatibility (#811) by @adhtruong in #811
(363ff7d) - Change default docs light theme (#808) by @AlexPetul in #808
(be76369) - Fix pre-commit mention in favor of prek (#807) by @Hugo-C in #807
(179afe9) - Add Hugo-C as a contributor for code (#809) by @allcontributors[bot] in #809
(a0be0cc) - Support pydantic by_name (#781) by @adhtruong in #781
(ad86dc1) - Remove unused models (#794) by @AlexPetul in #794
(eeab10b) - Bump actions/checkout from 5 to 6 (#789) by @dependabot[bot] in #789
(4c84fad) - Bump actions/download-artifact from 6 to 7 (#805) by @dependabot[bot] in #805
(76d8547) - Bump actions/upload-artifact from 5 to 6 (#804) by @dependabot[bot] in #804
(8615efe) - Update classifiers (#810) by @adhtruong in #810
(530c192) - Prepare v3.2.0 release (#812) by @adhtruong in #812
(f0440ed) - Update pre-commit (#797) by @adhtruong in #797
perf: micro-optimize BaseFactory._infer_model_type by @sobolevn in #731
BaseFactory._infer_model_type by @sobolevn in #731collection_class in SQLAlchemy relationships by @AlexPetul in #776Full Changelog: v3.0.0...v3.1.0
36c68f5 ... 2eff4e1 | See diff for 3.1.0
(637e731) - Skip association proxy creation if creator is not specified (#788) by @AlexPetul in #788
(76e2c5c) - Add AlexPetul as a contributor for code (#786) by @allcontributors[bot] in #786
(2ca8574) - Fix typo in changelog.rst (#791) by @sobolevn in #791
(c54880f) - Support NotRequired fields in TypedDictFactory (#785) by @adhtruong in #785
(77031a5) - Support for custom collection_class in SQLAlchemy relationships (#776) by @AlexPetul in #776
(af885a3) - Support python 3.14 (#779) by @adhtruong in #779
(2eff4e1) - Prepare v3.1.0 release (#792) by @adhtruong in #792
(6ab574a) - Add test_success to simplify PR check (#780) by @adhtruong in #780
chore: v3 release by @adhtruong in #720
83fc729 ... 36c68f5 | See diff for 3.0.0
(ddd33c8) - Remove unused tests by @adhtruong
(561b740) - Drop 3.8 support (#721) by @adhtruong
(37b69f9) - Update docs ui (#748) by @Harshal6927
(36c68f5) - Prepare v3 release by @adhtruong in #720
(96160ab) [breaking] - Remove deprecated elements (#703)f by @adhtruong
fix: Use correct field_meta for constrained union types when building field values for coverage by @bullfest in #770
Full Changelog: v2.22.4...v2.22.5
2e5c768 ... 83fc729 | See diff for 2.22.5
(af24258) - Use correct field_meta for constrained union types when building field values for coverage (#770) by @bullfest in #770
(d6f4df7) - Add bullfest as a contributor for code (#777) by @allcontributors[bot] in #777
(83fc729) - Prepare v2.22.5 release (#778) by @adhtruong in #778
docs: fix typo in pydantic_factory.coverage doc string by @RasmusNygren in #763
Full Changelog: v2.22.3...v2.22.4
ad0a768 ... 2e5c768 | See diff for 2.22.4
(45958e4) - Model coverage generation and __use_examples__ do not compose well (#757) by @arembridge in #757
(09cc9d9) - Fix typo in pydantic_factory.coverage doc string (#763) by @RasmusNygren in #763
(b8d0c6f) - Add RasmusNygren as a contributor for doc (#766) by @allcontributors[bot] in #766
(213ea1c) - Add arembridge as a contributor for code (#767) by @allcontributors[bot] in #767
(0626847) - Bump actions/upload-artifact from 4 to 5 (#764) by @dependabot[bot] in #764
(7d67749) - Bump actions/download-artifact from 5 to 6 (#765) by @dependabot[bot] in #765
(2e5c768) - Prepare v2.22.4 release (#775) by @adhtruong in #775
chore(deps): bump actions/checkout from 4 to 5 by @dependabot [bot] in #740
Full Changelog: v2.22.2...v2.22.3
63eaa9f ... ad0a768 | See diff for 2.22.3
(0358ad0) - Pydantic Factory alias generation from version 2.11 (#718) by @sandre35 in #718
(81bfbc2) - Remove association proxy default change (#747) by @adhtruong in #747
(7eec41e) - Add migration guide (#704) by @adhtruong in #704
(ae7cb36) - Bump actions/checkout from 4 to 5 (#740) by @dependabot[bot] in #740
(0c610f1) - Bump amannn/action-semantic-pull-request from 5 to 6 (#741) by @dependabot[bot] in #741
(5e605dc) - Bump actions/download-artifact from 4 to 5 (#739) by @dependabot[bot] in #739
(62d92c9) - Bump actions/github-script from 7 to 8 (#743) by @dependabot[bot] in #743
(16d847b) - Bump actions/setup-python from 5 to 6 (#742) by @dependabot[bot] in #742
(572a47c) - Update CODEOWNERS (#749) by @adhtruong in #749
(1b26034) - Bump github/codeql-action from 3 to 4 (#756) by @dependabot[bot] in #756
(5ec0b01) - Bump astral-sh/setup-uv from 6 to 7 (#755) by @dependabot[bot] in #755
(c87481a) - Remove unused script (#716) by @adhtruong in #716
(ad0a768) - Prepare v2.22.3 release (#761) by @adhtruong in #761
fix: pydantic alias handling by @adhtruong in #737
Full Changelog: v2.22.1...v2.22.2
a14ac7f ... 63eaa9f | See diff for 2.22.2
(6dcd191) - Pydantic alias handling (#737) by @adhtruong in #737
(8e14c35) - Allow specifying forward references when as string (#735) by @adhtruong in #735
(63eaa9f) - Bump to v2.22.2 (#738) by @adhtruong in #738
fix: deprecation error not silenced when overridden by @adhtruong in #724
Full Changelog: v2.22.0...v2.22.1
f270b0f ... a14ac7f | See diff for 2.22.1
(90d372c) - Handle recursive types that use ForwardRef (#728) by @adhtruong in #728
(9fa5c66) - Deprecation error not silenced when overridden (#724) by @adhtruong in #724
(a14ac7f) - Bump to v2.22.1 (#732) by @adhtruong in #732
chore: warn on deprecated parameter usage by @adhtruong in #689
Full Changelog: v2.21.0...v2.22.0
203310b ... f270b0f | See diff for 2.22.0
(94eb1bf) - Test by adding inheritance in Child class from Parent (#706) by @Rub1kCube in #706
(dbcf79d) - Generate correct collection size when annotation_types.Len is used (#712) by @priyankc in #712
(216b8a5) - No blank children names (#666) by @iloveitaly in #666
(3b541b6) - Add marcuslimdw as a contributor for code (#699) by @allcontributors[bot] in #699
(a34e7d3) - Add Rub1kCube as a contributor for test (#708) by @allcontributors[bot] in #708
(5de22fa) - Allow usage of Pydantic models containing forward references (#698) by @marcuslimdw in #698
(c7a7b44) - Add PEP 695 type alias support and improve type handling (#711) by @Rub1kCube in #711
(82baed7) - Remove _AnnotatedAlias (#693) by @adhtruong in #693
(5d97be2) - Warn on deprecated parameter usage (#689) by @adhtruong in #689
(aff32a0) - Bump astral-sh/setup-uv from 5 to 6 (#696) by @dependabot[bot] in #696
(d03aa1b) - Bump dawidd6/action-download-artifact from 9 to 10 (#709) by @dependabot[bot] in #709
(0cd86d2) - Bump dawidd6/action-download-artifact from 10 to 11 (#714) by @dependabot[bot] in #714
(f270b0f) - Bump to v2.22.0 (#722) by @adhtruong in #722
(0d55db8) - Avoid deep copy (#702) by @adhtruong in #702
(6281fb2) - Make type utils deterministic (#688) by @adhtruong in #688
(00aa862) - Deprecate FieldMeta.random (#663) by @adhtruong in #663
A huge 'Thank you!' to all other sponsors across Polar.sh, OpenCollective and GitHub Sponsors!
(4ae69c8) - Handle pydantic v1 URL and email correctly (#685) by @Xdynix in #685
(18d8579) - Make type alias detection work with typing_extensions 4.13 (#684) by @airwoodix in #684
### Features
(9940230) - Document overriding SQLA column mapping (#671) by @adhtruong in #671
(cc789b5) - Support new type and annotated mapping (#680) by @adhtruong in #680
(36395d9) - Issue 678 use pydantic field examples (#679) by @stardust85 in #679
(02fed72) - Add release command (#687) by @adhtruong in #687
(e0c6941) - Remove sonar (#672) by @adhtruong in #672
(00aa862) - Deprecate FieldMeta.random (#663) by @adhtruong in #663
(ade1115) - Migrate to typos (#675) by @adhtruong in #675
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.20.0...v2.21.0
0facd26 ... 203310b | See diff for 2.21.0
(4ae69c8) - Handle pydantic v1 URL and email correctly (#685) by @Xdynix in #685
(18d8579) - Make type alias detection work with typing_extensions 4.13 (#684) by @airwoodix in #684
(9940230) - Document overriding SQLA column mapping (#671) by @adhtruong in #671
(cc789b5) - Support new type and annotated mapping (#680) by @adhtruong in #680
(36395d9) - Issue 678 use pydantic field examples (#679) by @stardust85 in #679
(02fed72) - Add release command (#687) by @adhtruong in #687
(e0c6941) - Remove sonar (#672) by @adhtruong in #672
(203310b) - Bump to v2.21.0 (#692) by @adhtruong in #692
(00aa862) - Deprecate FieldMeta.random (#663) by @adhtruong in #663
(ade1115) - Migrate to typos (#675) by @adhtruong in #675
(c42bf6d) - Add toml formatter (#682) by @adhtruong in #682
A huge 'Thank you!' to all other sponsors across Polar.sh, OpenCollective and GitHub Sponsors!
A huge 'Thank you!' to all other sponsors across Polar.sh, OpenCollective and GitHub Sponsors!
### New Features 🚀
### Fixes 🔧
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.19.0...v2.20.0
de78949 ... 0facd26 | See diff for 2.20.0
(64fa119) - Allow non-hashable type args (#643) by @adhtruong in #643
(703aa2e) - Dont allow faker version less then 5.0.0 (#646) by @T0nd0Tara in #646
(e4a27ca) - Added a generate function to support SQL Numeric field (#636) by @nisemenov in #636
(da6ad4d) - Ignore dataclass types in pydantic field parsing (#660) by @adhtruong in #660
(3c1e68f) - Add nisemenov as a contributor for code, and doc (#633) by @allcontributors[bot] in #633
(beab66c) - Add iloveitaly as a contributor for code, and doc (#662) by @allcontributors[bot] in #662
(8c1fe02) - Described an ability to use async data in factory fields; refactored factories/base and some tests (#641) by @nisemenov in #641
(ba7cd3f) - Simplify pytest plugin (#652) by @adhtruong in #652
(b98ae5d) - Improve create factory typing (#657) by @adhtruong in #657
(33c72e7) - Add_providers to easily add new type provider (#659) by @iloveitaly in #659
(0b5df15) - Improve random range (#653) by @adhtruong in #653
(f5cb818) - Bump dawidd6/action-download-artifact from 7 to 9 (#651) by @dependabot[bot] in #651
(1c56f09) - Bump codecov/codecov-action from 4 to 5 (#620) by @dependabot[bot] in #620
(516dd6d) - Improve test imports (#661) by @adhtruong in #661
(0facd26) - Prep 2.20.0 release (#669) by @adhtruong in #669
(34182d4) - Update dependencies and ignores (#648) by @adhtruong in #648
(396b555) - Update pyright (#665) by @adhtruong in #665
build: change deprecated action by @adhtruong in https://github.com/litestar-org/polyfactory/pull/626
Thanks to these incredible business sponsors:
Scalar (@scalar), Telemetry Sports (via @chris-telemetry), Stok (@stok-team)
A huge 'Thank you!' to all other sponsors across Polar.sh, OpenCollective and GitHub Sponsors!
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.18.1...v2.19.0
0290580 ... de78949 | See diff for 2.19.0
(e1c5b8c) - Lock PDM version to support 3.8 (#609) by @adhtruong in #609
(f526601) - Pydantic 2.10 compatibility (#613) by @adhtruong in #613
(1e0c847) - Update security alert (#615) by @adhtruong in #615
(135bbc0) - Ensure ABC are not considered a factory type (#628) by @adhtruong in #628
(137bfb9) - Added an async context manager in SQLAASyncPersistence (#630) by @nisemenov in #630
(42999fa) - Added __set_association_proxy__ attribute (#629) by @nisemenov in #629
(d6a886a) - Bump astral-sh/setup-uv from 4 to 5 (#622) by @dependabot[bot] in #622
(9db2ee7) - Bump dawidd6/action-download-artifact from 3 to 7 (#619) by @dependabot[bot] in #619
(de78949) - Prep 2.19.0 release (#637) by @adhtruong in #637
(a7dda85) - Update Pydantic imports (#625) by @adhtruong in #625
(9ee5852) - Update pre-commit dependencies (#614) by @adhtruong in #614
(9fa4ad9) - Migrate to uv (#612) by @adhtruong in #612
(d374de5) - Support 3.13 (#599) by @adhtruong in #599
(d2ef554) - Change deprecated action (#626) by @adhtruong in #626
Thanks to these incredible business sponsors:
Thanks to these incredible business sponsors:
Scalar (@scalar), Telemetry Sports (via @chris-telemetry), Stok (@stok-team)
A huge 'Thank you!' to all other sponsors across Polar.sh, OpenCollective and GitHub Sponsors!
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.18.0...v2.18.1
f7b5d8b ... 0290580 | See diff for 2.18.1
(660183b) - Handle nullable SQLA constraints (#602) by @adhtruong in #602
(0290580) - Bump release version (#608) by @adhtruong in #608
Thanks to these incredible business sponsors:
Thanks to these incredible business sponsors:
Scalar (@scalar), Telemetry Sports (via @chris-telemetry), Stok (@stok-team)
A huge 'Thank you!' to all other sponsors across Polar.sh, OpenCollective and GitHub Sponsors!
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.17.0...v2.18.0
37a9894 ... f7b5d8b | See diff for 2.18.0
(c027bbd) - Update docs preview upload (#597) by @adhtruong in #597
(8d8f6a9) - Add SQLA async to test dependencies (#595) by @adhtruong in #595
(6abb845) - Handle SQLA column constraints (#594) by @adhtruong in #594
Thanks to these incredible business sponsors:
Thanks to these incredible business sponsors:
Scalar (@scalar), Telemetry Sports (via @chris-telemetry), Stok (@stok-team)
A huge 'Thank you!' to all other sponsors across Polar.sh, OpenCollective and GitHub Sponsors!
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.16.2...v2.17.0
67c5720 ... 37a9894 | See diff for 2.17.0
(24701eb) - Constrained 0 length lists (#570) by @marcozzxx810 in #570
(6f5b78c) - Use provider map for any in coverage (#574) by @adhtruong in #574
(4aaf656) - Tuple randomized length (#573) by @adhtruong in #573
(9a83ad6) - Adjust min/max items to valid lengths for Set[Enum] fields (#567) by @adrianeboyd in #567
(135d7fe) - Handle Optional type recursive models (#584) by @adhtruong in #584
(6440faa) - Handle recursive collections (#587) by @adhtruong in #587
(841831d) - Swap word with its antonym to match the context (#575) by @UncleGoogle in #575
(c0c2704) - Enhance register_fixture return type annotation (#581) by @giulioindev in #581
(37a9894) - Bump release version (#588) by @adhtruong in #588
(d75b1d2) - Update pre-commit dependencies (#571) by @adhtruong in #571
Thanks to these incredible business sponsors:
Thanks to these incredible business sponsors:
Scalar (@scalar), Telemetry Sports (via @chris-telemetry), Stok (@stok-team)
A huge 'Thank you!' to all other sponsors across Polar.sh, OpenCollective and GitHub Sponsors!
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.16.1...v2.16.2
Thanks to these incredible business sponsors:
Thanks to these incredible business sponsors:
Scalar (@scalar), Telemetry Sports (via @chris-telemetry), Stok (@stok-team)
A huge 'Thank you!' to all other sponsors across Polar.sh, OpenCollective and GitHub Sponsors!
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.16.0...v2.16.1
4928f07 ... 23281ee | See diff for 2.16.1
(86869c2) - Use provider map for generating value for 'Any' (#522) by @vkcku in #522
(cbe6dfc) - Pydantic factory_use_construct is not propagated to the nested (#549) in #549
(b09bf64) - Send correct field_meta to avoid over nesting (#527) by @Vegemash in #527
(c34e72e) - Add Reskov as a contributor for code (#556) by @allcontributors[bot] in #556
(3320989) - Add Vegemash as a contributor for code (#562) by @allcontributors[bot] in #562
Thanks to these incredible business sponsors:
Thanks to these incredible business sponsors:
Scalar (@scalar), Telemetry Sports (via @chris-telemetry), Stok (@stok-team)
A huge 'Thank you!' to all other sponsors across Polar.sh, OpenCollective and GitHub Sponsors!
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.15.0...v2.16.0
1d1c7f9 ... 4928f07 | See diff for 2.16.0
(719495e) - Ignore non-columns types (#510) by @adhtruong in #510
(bb04b4e) - Favour SA mapped type over impl type (#513) by @adhtruong in #513
(0032b5e) - Add footer to changelog generation by @JacobCoffee
(5fd7d6c) - Resolve mypy issues (#540) by @adhtruong in #540
(9e6edab) - Fix json type error and pg dialect default value e… (#542) by @wangxin688 in #542
(01d1dbe) - Apply organization theme (#533) by @JacobCoffee in #533
(5a0a5be) - Polyfactory landing page (#535) by @JacobCoffee in #535
(2f781ee) - Add wangxin688 as a contributor for code (#544) by @allcontributors[bot] in #544
(1792c19) - Support nested type in pg.array types and others (#530) by @wangxin688 in #530
(013135c) - Refresh object in async_session after commit to db (#541) by @wangxin688 in #541
(e4695a7) - Copy mutable args (#529) by @adhtruong in #529
(fac9fba) - Upgrade dependencies (#517) by @adhtruong in #517
(3da64f6) - Update changelog.rst (#537) by @impaktor in #537
(3e2d22c) - Update maintainer emails (#545) by @vkcku in #545
(6507c6d) - Add codecov coverage, fix badges (#536) by @JacobCoffee in #536
GitHub Sponsors: Scalar, Telemetry Sports (via @chris-telemetry), Stok (https://github.com/stok-team), @benjamin-kirkbride, @crisog, @geeshta, @cbscsm
GitHub Sponsors: Scalar, Telemetry Sports (via @chris-telemetry), Stok (https://github.com/stok-team), @benjamin-kirkbride, @crisog, @geeshta, @cbscsm OpenCollective: Christian Y, Anonymous
sqlalchemy.type.impl if it exists by @cofin in https://github.com/litestar-org/polyfactory/pull/502Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.14.1...v2.15.0
b44c68b ... 1d1c7f9 | See diff for 2.15.0
(c4e3d91) - Prefer sqlalchemy.type.impl if it exists (#502) by @cofin in #502
(0f8f9e8) - Handle constrained unions properly (#499) by @vkcku in #499
(61c8892) - Fix typo on use_defaults (#497) by @TimDumol in #497
(9e34fa7) - Add TimDumol as a contributor for doc (#498) by @allcontributors[bot] in #498
(1078230) - Bump pdm-project/setup-pdm from 3 to 4 (#496) by @dependabot[bot] in #496
❤️ Sponsors ❤️ GitHub Sponsors: Scalar, Telemetry Sports (via @chris-telemetry), Stok (https://github.com/stok-team), @benjamin-kirkbride, @crisog, @g
❤️ Sponsors ❤️ GitHub Sponsors: Scalar, Telemetry Sports (via @chris-telemetry), Stok (https://github.com/stok-team), @benjamin-kirkbride, @crisog, @geeshta, @cbscsm OpenCollective: Christian Y, Anonymous
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.14.0...v2.14.1
GitHub Sponsors: Scalar, Telemetry Sports (via @chris-telemetry), Stok (@stok-team), @benjamin-kirkbride, @crisog, @geeshta, @cbscsm OpenCollective: C
GitHub Sponsors: Scalar, Telemetry Sports (via @chris-telemetry), Stok (@stok-team), @benjamin-kirkbride, @crisog, @geeshta, @cbscsm OpenCollective: Christian Y, Anonymous
__use_default__ is set to True by @guacs in https://github.com/litestar-org/polyfactory/pull/472typing-extensions to a minimum version of 4.6.0 by @hsorsky in https://github.com/litestar-org/polyfactory/pull/471Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.13.0...v2.14.0
8dc8e1a ... 83f2992 | See diff for 2.14.0
(fb4e50a) - Add min version to typing-extensions (#471) by @hsorsky in #471
(40538c9) - Set as default type for factory only if model is defined (#479) by @vkcku in #479
(c22633c) - Add hsorsky as a contributor for infra (#477) by @allcontributors[bot] in #477
(8f96365) - Add wer153 as a contributor for doc (#486) by @allcontributors[bot] in #486
(b33e662) - Allow use of the default value based on configuration (#472) by @vkcku in #472
(80bd012) - Add recursion guard (#468) by @adhtruong in #468
(c7556e8) - Pass on factory config (#483) by @adhtruong in #483
(94ad561) - Support type alias (#487) by @adhtruong in #487
GitHub Sponsors: Scalar, Telemetry Sports (via @chris-telemetry) @benjamin-kirkbride @crisog @geeshta OpenCollective: Christian Y, Anonymous
GitHub Sponsors: Scalar, Telemetry Sports (via @chris-telemetry) @benjamin-kirkbride @crisog @geeshta OpenCollective: Christian Y, Anonymous
__model__ from generic type args by @Mityuha in https://github.com/litestar-org/polyfactory/pull/452flatten_annotation by @sam-or in https://github.com/litestar-org/polyfactory/pull/440Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.12.0...v2.13.0
fe05c4e ... 8dc8e1a | See diff for 2.13.0
(b479e4a) - Flatten_annotation behaviour for Optional (#440) by @sam-or in #440
(6961eaa) - Don't blindly suppress ValueError (#450) by @vkcku in #450
(1407f07) - Bump actions/github-script from 6 to 7 (#438) by @dependabot[bot] in #438
(1a0da0d) - Bump actions/setup-python from 4 to 5 (#448) by @dependabot[bot] in #448
(231d311) - Bump github/codeql-action from 2 to 3 (#458) by @dependabot[bot] in #458
(2695880) - Bump dawidd6/action-download-artifact from 2 to 3 (#459) by @dependabot[bot] in #459
(fe342e4) - Bump actions/upload-artifact from 3 to 4 (#461) by @dependabot[bot] in #461
(a371d7f) - Bump actions/download-artifact from 3 to 4 (#462) by @dependabot[bot] in #462
GitHub Sponsors: Telemetry Sports (via @chris-telemetry) @benjamin-kirkbride @crisog @geeshta OpenCollective: Christian Y, Anonymous
GitHub Sponsors: Telemetry Sports (via @chris-telemetry) @benjamin-kirkbride @crisog @geeshta OpenCollective: Christian Y, Anonymous
factory.__model__ as default for model argument in create_factory by @g0di in https://github.com/litestar-org/polyfactory/pull/429Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.11.0...v2.12.0
b7b88a8 ... fe05c4e | See diff for 2.12.0
(70d49fd) - Handle cases where 'init=False' for dataclasses and attrs models (#433) by @vkcku in #433
(6b7512d) - Correctly handle collections with constrained items (#436) by @vkcku in #436
(2bad951) - Add g0di as a contributor for code, doc, and test (#432) by @allcontributors[bot] in #432
Deprecate FieldMeta collection params by @adhtruong in https://github.com/litestar-org/polyfactory/pull/417
GitHub Sponsors: @benjamin-kirkbride @crisog OpenCollective: Christian Y, Anonymous
Constraints by @guacs in https://github.com/litestar-org/polyfactory/pull/411FieldMeta collection params by @adhtruong in https://github.com/litestar-org/polyfactory/pull/417Required and NonRequired annotations in TypedDict by @guacs in https://github.com/litestar-org/polyfactory/pull/422kwargs passed to the build method by @julioolvr in https://github.com/litestar-org/polyfactory/pull/420Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.10.0...v2.11.0
63aa272 ... b7b88a8 | See diff for 2.11.0
(caaee0f) - Handle Required and NonRequired annotations (#422) by @vkcku in #422
(5d64bde) - Respect override of optional nested model fields (#420) by @julioolvr in #420
(e819c2f) - Add johnraz as a contributor for code, doc, and test (#413) by @allcontributors[bot] in #413
(0631d80) - Update installation (#414) by @adhtruong in #414
(11f234c) - Reorder docs and add docs on factories as fields (#418) by @adhtruong in #418
(a0465c6) - Add julioolvr as a contributor for code, and test (#425) by @allcontributors[bot] in #425
(5fefa41) - Check if fields declared on the factory belong to the model (#405) by @johnraz in #405
(e1f7a47) - Support annotation with Constraints (#411) by @vkcku in #411
(0717951) - Deprecate FieldMeta collection params (#417) by @adhtruong in #417
GitHub Sponsors: @benjamin-kirkbride @crisog OpenCollective: Christian Y, Anonymous
GitHub Sponsors: @benjamin-kirkbride @crisog OpenCollective: Christian Y, Anonymous
FieldMeta by @guacs in https://github.com/litestar-org/polyfactory/pull/407Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.9.0...v2.10.0
f2c6fe1 ... 63aa272 | See diff for 2.10.0
(8c88293) - Properly resolve dataclass forward references (#383) by @vkcku in #383
(0064240) - Update makefile (#399) by @JacobCoffee in #399
(89cd351) - Decouple the handling of collection length configuration from FieldMeta (#407) by @vkcku in #407
(c1edfd5) - Install all dependencies for docs build (#404) by @adhtruong in #404
(cabe03c) - Support sqlalchemy 1.4 (#385) by @adhtruong in #385
(79360f1) - Move creation of pydantic provider map (#396) by @vkcku in #396
(f555636) - Refactor the msgspec factory to use the fields API (#409) by @vkcku in #409
(8ef78b8) - Fix alternative version installation (#389) by @adhtruong in #389
(eddb978) - Migrate to pdm and full ruff (#384) by @JacobCoffee in #384
@anthonyjgraff made their first contribution in https://github.com/litestar-org/polyfactory/pull/371
GitHub Sponsors: @benjamin-kirkbride, @crisog OpenCollective: Christian Y, GitHub Sponsors, Shubham Prajapati, Snyk, Matteo
sqlalchemy factory by @adhtruong in https://github.com/litestar-org/polyfactory/pull/369attrs models by @guacs in https://github.com/litestar-org/polyfactory/pull/370AttrsFactory by default in attrs models by @guacs in https://github.com/litestar-org/polyfactory/pull/370size=0 constraints for collections by @adhtruong in https://github.com/litestar-org/polyfactory/pull/373dataclasses API for parsing dataclass models by @anthonyjgraff in https://github.com/litestar-org/polyfactory/pull/371pytest configuration stricter by @sobolevn in https://github.com/litestar-org/polyfactory/pull/363Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.8.2...v2.9.0
ebf30ff ... f2c6fe1 | See diff for 2.9.0
(2a20513) - Properly type hint create_factory (#360) by @vkcku in #360
(8e41372) - Update fixture size handling (#373) by @adhtruong in #373
(87a6749) - Dataclass field type not used correctly (#371) by @anthonyjgraff in #371
(6f4b712) - Add adhtruong as a contributor for doc, test, and code (#375) by @allcontributors[bot] in #375
(64c4e6c) - Add anthonyjgraff as a contributor for code (#374) by @allcontributors[bot] in #374
(f2c6fe1) - Add guacs as a contributor for infra, code, and 2 more (#380) by @allcontributors[bot] in #380
(c76ffc9) - Implement SQLA factory (#369) by @adhtruong in #369
(fc0bf61) - Update maintainers by @provinzkraut
(f67f36e) - Ignore .all-contributorsrc for in .pre-commit (#377) by @adhtruong in #377
(66e9db1) - Fix all-contributors config by @JacobCoffee
(ec177ec) - Make pytest configuration stricter (#363) by @sobolevn in #363
(95d24cb) - Skip variable length dict test for odmantic (#372) by @vkcku in #372
(adccaf0) - Enable publishing with PyPI trusted publishers (#368) by @provinzkraut in #368
@sobolevn made their first contribution in https://github.com/litestar-org/polyfactory/pull/361
GitHub Sponsors: @benjamin-kirkbride, @crisog OpenCollective: Christian Y, GitHub Sponsors, Shubham Prajapati, Snyk
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.8.1...v2.8.2
7af5469 ... ebf30ff | See diff for 2.8.2
(f639c26) - Properly set annotation in union with nested Annotated (#355) by @vkcku in #355
(ebf30ff) - Add minimum version constraint to attrs (#359) by @vkcku in #359
Add missing factories to builtin registration by @guacs in https://github.com/litestar-org/polyfactory/pull/351
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.8.0...v2.8.1
7b46b57 ... 7af5469 | See diff for 2.8.1
(3dba4be) - Use full Python version for venv cache (#352) by @vkcku in #352
(257852a) - Add missing factories to builtin registration (#351) by @vkcku in #351
(e4daf5f) - Add adhtruong as a contributor for code (#346) by @allcontributors[bot] in #346
(9ffe596) - Expose all options (#350) by @adhtruong in #350
(7a5a1c9) - Add adhtruong as a contributor for doc (#353) by @allcontributors[bot] in #353
(4f2e5d8) - Updated dependencies by @Goldziher
(161c0f6) - Bump actions/checkout from 3 to 4 (#349) by @dependabot[bot] in #349
@185504a9 made their first contribution in https://github.com/litestar-org/polyfactory/pull/333
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.7.2...v2.8.0
710d3ce ... 7b46b57 | See diff for 2.8.0
(ea41bbe) - Add 185504a9 as a contributor for code (#339) by @allcontributors[bot] in #339
(510fabd) - Support constraints for mapping types (#337) by @vkcku in #337
(0228d3d) - Add pydantic's AwareDatetime to the mock map (#333) by @185504a9 in #333
(bf04fa6) - Updated dependencies (#338) by @Goldziher in #338
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.2
@klimantje made their first contribution in https://github.com/litestar-org/polyfactory/pull/319
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.7.0...v2.7.1
3e45f8f ... 04a504b | See diff for 2.7.1
(2733497) - Add support for Json type in Pydantic factory (#315) by @vkcku in #315
(3aeaa0c) - Constrained strings not deterministic with seed because urandom not seedable (#319) by @klimantje in #319
(61f1e2e) - Random seed configuration (#321) by @vkcku in #321
(2400fbe) - Include pydantic Field constraints when using Optional type (#323) by @tcrasset in #323
(8ff7e0f) - Add klimantje as a contributor for code (#320) by @allcontributors[bot] in #320
(9def5b1) - Add tcrasset as a contributor for code (#324) by @allcontributors[bot] in #324
(5543e66) - Fix health files (#322) by @JacobCoffee in #322
(5abe4b3) - Update issue template config by @JacobCoffee
infra: update codeowners by @JacobCoffee in https://github.com/litestar-org/polyfactory/pull/311
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.6.3...v2.7.0
e703593 ... 3e45f8f | See diff for 2.7.0
(0bfa3b4) - Add litestar rename news link by @JacobCoffee
(d385561) - Update codeowners (#311) by @JacobCoffee in #311
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.3
86585d0 ... e703593 | See diff for 2.6.3
(7405901) - Remove stray badge (#306) by @JacobCoffee in #306
(b1f8f6e) - Remove stray character from README by @JacobCoffee
(c936389) - Update poetry dependencies (#308) by @Goldziher in #308
(09f896c) - Fix CONTRIBUTING.rst (#310) by @provinzkraut in #310
(3fadfb7) - Fix annotated field resolution (#309) by @Goldziher in #309
Fix random access on lower Python versions by @Goldziher in https://github.com/litestar-org/polyfactory/pull/301
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.6.1...v2.6.2
d331ae0 ... 86585d0 | See diff for 2.6.2
(a2be35a) - Switch to using faker.seed_instance (#305) by @Goldziher in #305
(86585d0) - 2.6.2 by @Goldziher
(f54f9f3) - Add passing test for issue 300 (#301) by @Goldziher in #301
@abdulhaq-e made their first contribution in https://github.com/litestar-org/polyfactory/pull/295
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.6.0...v2.6.1
79e8145 ... d331ae0 | See diff for 2.6.1
(7761834) - Add abdulhaq-e as a contributor for code (#297) by @allcontributors[bot] in #297
Support for configurable length sequence generation by @mdczaplicki in https://github.com/litestar-org/polyfactory/pull/189
New Features 🚀
Fixes 🔧
const not being used with pydantic v1 models. by @Goldziher in https://github.com/litestar-org/polyfactory/pull/293Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.5.0...v2.6.0
2b050bb ... 79e8145 | See diff for 2.6.0
(16cbc99) - Fix pre-commit issues by @Goldziher
(956472c) - Apply sourcery by @Goldziher
(5cdfed3) - Updated dependencies by @Goldziher
🎉 Full  Support with the it's official release: https://github.com/pydantic/pydantic/releases/tag/v2.0 🎉
🎉 Full Support with the it's official release: https://github.com/pydantic/pydantic/releases/tag/v2.0 🎉
is_safe_subclass consistently by @gsakkis in https://github.com/litestar-org/polyfactory/pull/283DEFAULT_RANDOM instead of initializing new value in BaseFactory by @mdczaplicki in https://github.com/litestar-org/polyfactory/pull/275Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.4.0...v2.5.0
79e50df ... 2b050bb | See diff for 2.5.0
(35e10da) - All contributors (#263) by @Goldziher in #263
(d592836) - Support overriding base factories locally (v2) (#267) by @gsakkis in #267
(2b8ae48) - Add peterschutt as a contributor for maintenance, doc, and test (#264) by @allcontributors[bot] in #264
(a53c598) - Update pypi image, update readme (#266) by @JacobCoffee in #266
(d0c8bfa) - Add mdczaplicki as a contributor for test, and code (#274) by @allcontributors[bot] in #274
(a7220f3) - Add sourcery-ai config (#271) by @JacobCoffee in #271
(946cf08) - Updated deps by @Goldziher
(e932f89) - Applied sourcery (#281) by @Goldziher in #281
(0c0ed22) - Adjust to pydantic v2 (#284) by @Goldziher in #284
(2b050bb) - Update README for v2.5.0 and pydantic v2 (#285) by @JacobCoffee in #285
Add: support for overriding base factories locally by @Goldziher in https://github.com/litestar-org/polyfactory/pull/238
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.3.3...v2.4.0
5013069 ... 79e50df | See diff for 2.4.0
(26073c4) - Support overriding base factories locally (#238) by @Goldziher in #238
(d625936) - Add Simske as a contributor for code (#242) by @allcontributors[bot] in #242
(2b93de6) - Add danielkatzan as a contributor for doc (#261) by @allcontributors[bot] in #261
(1511c9e) - Add gegnew as a contributor for code (#262) by @allcontributors[bot] in #262
(d355511) - Add roeeyn as a contributor for doc (#260) by @allcontributors[bot] in #260
(c686ddd) - Add gigelu as a contributor for doc (#259) by @allcontributors[bot] in #259
(9101134) - Add ReznikovRoman as a contributor for code (#258) by @allcontributors[bot] in #258
(1e4df30) - Add anthonyh209 as a contributor for code (#257) by @allcontributors[bot] in #257
(c6657e7) - Add avihai-yosef as a contributor for code (#256) by @allcontributors[bot] in #256
(97cdad2) - Add Iipin as a contributor for code (#254) by @allcontributors[bot] in #254
(9156cca) - Add thorin-schiffer as a contributor for code (#253) by @allcontributors[bot] in #253
(02c1daa) - Add lyz-code as a contributor for code (#252) by @allcontributors[bot] in #252
(e883d58) - Add DaanRademaker as a contributor for code (#251) by @allcontributors[bot] in #251
(cd2e558) - Add nguyent as a contributor for code (#250) by @allcontributors[bot] in #250
(af594e3) - Add EltonChou as a contributor for code (#249) by @allcontributors[bot] in #249
(bac2622) - Add Butch78 as a contributor for code (#248) by @allcontributors[bot] in #248
(13e80a7) - Add lindycoder as a contributor for code (#247) by @allcontributors[bot] in #247
(3940de4) - Add peterschutt as a contributor for code (#246) by @allcontributors[bot] in #246
(e598c7d) - Add phbernardes as a contributor for code (#245) by @allcontributors[bot] in #245
(24a7766) - Add mciszczon as a contributor for code (#244) by @allcontributors[bot] in #244
(b8cfe1a) - Add sondrelg as a contributor for code (#243) by @allcontributors[bot] in #243
(773b364) - URL constraints and strict pydantic v2 values (#241) by @Goldziher in #241
(00dce8a) - Reformat readme by @Goldziher
Unwrap annotation for URL types (#234) by @VSHUMILIN97 in https://github.com/litestar-org/polyfactory/pull/235
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.3.2...v2.3.3
aef7acb ... 5013069 | See diff for 2.3.3
(b9ea84d) - Add VSHUMILIN97 as a contributor for code (#237) by @allcontributors[bot] in #237
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.2
36c2f2f ... aef7acb | See diff for 2.3.2
(5bd544f) - Fix constant constraints (#233) by @Goldziher in #233
Add a default value for FieldMeta random args by @provinzkraut in https://github.com/litestar-org/polyfactory/pull/232
FieldMeta random args by @provinzkraut in https://github.com/litestar-org/polyfactory/pull/232Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.3.0...v2.3.1
Retrieve field types from result of get_type_hints(). by @peterschutt in https://github.com/litestar-org/polyfactory/pull/229
get_type_hints(). by @peterschutt in https://github.com/litestar-org/polyfactory/pull/229Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.2.0...v2.3.0
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.0
Bump requests from 2.30.0 to 2.31.0 by @dependabot in https://github.com/litestar-org/polyfactory/pull/219
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.1.1...v2.1.2
f2ba049 ... 2e2f11a | See diff for 2.1.2
(02a4c97) - Add guacs as a contributor for code (#221) by @allcontributors[bot] in #221
(d753504) - Remove typeddict imports from typing extensions by @Goldziher
(2e2f11a) - Resolve pydantic test issues by @Goldziher
Fix handle_complex_type for Union of Literals by @gsakkis in https://github.com/litestar-org/polyfactory/pull/213
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.1.0...v2.1.1
Factory inheritance by @gsakkis in https://github.com/litestar-org/polyfactory/pull/203
Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.0.1...v2.1.0
d671ac2 ... 47d234b | See diff for 2.1.0
(1d5c645) - Fix README.md formatting (#197) by @JacobCoffee in #197
(f767011) - Add sygutss as a contributor for bug (#201) by @allcontributors[bot] in #201
(36ff02e) - Add chrisbeardy as a contributor for doc (#207) by @allcontributors[bot] in #207
Bson field support for odmantic models by @gsakkis in https://github.com/litestar-org/polyfactory/pull/193
ConfigurationException for unsupported model type by @przybylop in https://github.com/litestar-org/polyfactory/pull/186Full Changelog: https://github.com/litestar-org/polyfactory/compare/v2.0.0...v2.0.1
1f8d94c ... d671ac2 | See diff for 2.0.1
(60cdb30) - Add mdczaplicki as a contributor for code (#185) by @allcontributors[bot] in #185
(8b5d903) - Add przybylop as a contributor for code (#187) by @allcontributors[bot] in #187
(16f562f) - Update maintainers (#194) by @JacobCoffee in #194
(d671ac2) - Bump release version by @JacobCoffee
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.0
cb71cd0 ... 1f8d94c | See diff for 2.0.0
(8097da7) - Update all-contrib placement by @JacobCoffee
(0814bb8) - Add JacobCoffee as a contributor for doc (#170)Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> by @allcontributors[bot] in #170
(60511c9) - Add Goldziher as a contributor for infra, test, and code (#171)Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> by @allcontributors[bot] in #171
(3853048) - Add provinzkraut as a contributor for code, test, and 6 more (#173) by @allcontributors[bot] in #173
Make MissingDependencyException a subclass of ImportError by @provinzkraut in https://github.com/litestar-org/polyfactory/pull/167
MissingDependencyException a subclass of ImportError by @provinzkraut in https://github.com/litestar-org/polyfactory/pull/167(7ae2678) - Explain how to subclass ModelFactory to create your custom extensions by @lyz-code
(218522f) - Reorder changes in CHANGELOG (#91) by @ReznikovRoman in #91
(4c2b931) - 2023 Branding by @JacobCoffee
(25570f5) - Update polyfactory banner logo by @JacobCoffee
Polyfactory Changelog
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →