{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/2"},{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/2"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/2"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"},{"label":"Unit","url":"https://skillfed.io/packages/category/software-development-testing-unit"}],"enrichment":{"capability":"Polyfactory generates mock data objects from type hints, supporting dataclasses, Pydantic models, typed-dicts, msgspec structs, and other typed structures for testing and development.","skillfed_tags":["testing","fixtures","mock-data"],"use_cases":["Generate realistic test data for unit tests without writing fixture factories by hand for each model.","Create mock Pydantic or dataclass instances for integration tests with pre-populated fields matching your schema.","Populate test databases with diverse, type-correct sample data for testing queries and business logic.","Build mock API responses during development when the real service is unavailable or not yet implemented.","Generate synthetic data for performance testing or load testing with properly typed, realistic values."],"what_it_does":"Polyfactory is a mock data generation library that reads type hints from your data models and automatically generates realistic test objects without manual configuration. It works with dataclasses, Pydantic models, typed-dicts, msgspec structs, and other typed structures, making it straightforward to create test fixtures that match your schema.\n\nYou define a factory class that inherits from the appropriate factory type for your model, and then call `.build()` to generate a populated instance. The library uses faker under the hood to produce realistic values (names, addresses, dates, etc.) that respect the types declared in your model. This eliminates boilerplate fixture code and keeps your test data generation in sync with your schema as it evolves.","worth_installing":"Yes. Polyfactory is actively maintained, has no known vulnerabilities, low install friction, and solves a real testing problem\u2014eliminating manual fixture boilerplate. It's well-suited for any project using typed Python models that needs realistic mock data for tests."},"id":"polyfactory","links":{"html":"https://skillfed.io/packages/polyfactory","md":"https://skillfed.io/packages/polyfactory.md","pypi":"https://pypi.org/project/polyfactory/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-02-22","license_spdx":null,"license_treatment":"permissive","name":"polyfactory","python_support":"supports_current","summary":"Mock data generation factories"},"popularity":{"monthly_downloads":11299823,"position":1401,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"3.3.0"}
