polyfactoryEasy Playground

Generate mock data from Pydantic models and dataclasses

Getting started with polyfactoryRun locally
Install
pip install polyfactory
Python CodeRun locally
Expected Output
# Expected output shown below
# (Run locally with: polyfactory)

polyfactory is a third-party package. Generate mock data from Pydantic models and dataclasses. Install with: pip install polyfactory

Challenge

Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?