{"id":25676540,"url":"https://github.com/phha/unifactory","last_synced_at":"2026-05-12T20:39:27.978Z","repository":{"id":215436628,"uuid":"738964879","full_name":"phha/unifactory","owner":"phha","description":"Automatically choose the right polyfactory.","archived":false,"fork":false,"pushed_at":"2024-01-04T13:10:53.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T01:36:35.669Z","etag":null,"topics":["attrs","beanie","msgspec","odmantic","polyfactory","pydantic","sqlalchemy"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/unifactory/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-04T13:09:50.000Z","updated_at":"2024-01-04T13:13:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"54104027-5f67-4034-9c00-d7f1e7796fe1","html_url":"https://github.com/phha/unifactory","commit_stats":null,"previous_names":["phha/unifactory"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/phha/unifactory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phha%2Funifactory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phha%2Funifactory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phha%2Funifactory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phha%2Funifactory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phha","download_url":"https://codeload.github.com/phha/unifactory/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phha%2Funifactory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284767943,"owners_count":27060132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-16T02:00:05.974Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["attrs","beanie","msgspec","odmantic","polyfactory","pydantic","sqlalchemy"],"created_at":"2025-02-24T14:34:48.821Z","updated_at":"2025-11-16T20:04:34.175Z","avatar_url":"https://github.com/phha.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unifactory\n\nUnifactory is a spin off from [fastapi-overrider](https://github.com/phha/fastapi-overrider).\nA simple tool to automatically choose a matching factory from [polyfactory's inventory](https://polyfactory.litestar.dev/usage/library_factories/index.html).\n\n## Installation\n\n`pip install unifactory`\n\n## Examples\n\n```python\nfrom polyfactory.pytest_plugin import register_fixture\nfrom unifactory import unifactory, build, batch, coverage\n\n@dataclass\nclass Person:\n    name: str\n    age: float\n    height: float\n    weight: float\n\nsome_person = build(Person)\nfive_persons = batch(Person, 5)\nall_persons = coverage(Person)\nperson_factory = register_fixture(unifactory(Person), name=\"person_factory\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphha%2Funifactory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphha%2Funifactory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphha%2Funifactory/lists"}