{"id":27211696,"url":"https://github.com/cofob/pyfa-converter-v2","last_synced_at":"2025-10-16T22:03:33.979Z","repository":{"id":205799688,"uuid":"715189495","full_name":"cofob/pyfa-converter-v2","owner":"cofob","description":"🪛 Pydantic to FastAPI model converter.","archived":false,"fork":false,"pushed_at":"2025-04-08T14:01:39.000Z","size":28,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-08T15:22:12.973Z","etag":null,"topics":["fastapi","pydantic","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cofob.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":"2023-11-06T16:40:06.000Z","updated_at":"2025-04-08T14:01:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"9452a450-1d16-47e1-94ec-272f6e1f213d","html_url":"https://github.com/cofob/pyfa-converter-v2","commit_stats":null,"previous_names":["aezagroup/pyfa-converter-v2","cofob/pyfa-converter-v2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cofob%2Fpyfa-converter-v2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cofob%2Fpyfa-converter-v2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cofob%2Fpyfa-converter-v2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cofob%2Fpyfa-converter-v2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cofob","download_url":"https://codeload.github.com/cofob/pyfa-converter-v2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248142101,"owners_count":21054592,"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","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":["fastapi","pydantic","python3"],"created_at":"2025-04-10T01:41:19.651Z","updated_at":"2025-10-16T22:03:28.944Z","avatar_url":"https://github.com/cofob.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyfa-converter-v2\n\nAllows you to convert Pydantic models for FastAPI param models - query, form, header, cookie, body, etc.\n\nThe project is originally written by dotX12 at [dotX12/pyfa-converter](https://github.com/dotX12/pyfa-converter),\nbut it doesn't support Pydantic v2, so we made a fork of the project with some changes:\n\n- Added support for pydantic v2\n- Added tests\n- Re-licensed the code to LGPL 3.0\n- Added mypy, flake8, isort checks\n- Removed dead code\n\nThe project may be archived if the original package author upgrades to Pydantic v2\n([dotX12/pyfa-converter#25](https://github.com/dotX12/pyfa-converter/issues/25)).\n\nCurrently, the library does not fully reflect the requirements in OpenAPI (e.g. gt parameter will be required, but this will not be specified in FastAPI docs).\n\n## How to install?\n\n`pip install pyfa_converter_v2`\n\n## How to simplify your life?\n\n```python3\nfrom fastapi import FastAPI\nfrom pydantic import BaseModel\n\nfrom pyfa_converter_v2 import QueryDepends\n\napp = FastAPI()\n\nclass ArticleSchema(BaseModel):\n    title: str\n    content: str\n\n@app.post(\"/article\")\nasync def create_article(article: ArticleSchema = QueryDepends(ArticleSchema)):\n    return {\"id\": 1, \"title\": article.title, \"content\": article.content}\n```\n\nAvailable converters: `QueryDepends`, `BodyDepends` and `FormDepends`. You can add new types via `PyFaDepends`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcofob%2Fpyfa-converter-v2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcofob%2Fpyfa-converter-v2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcofob%2Fpyfa-converter-v2/lists"}