{"id":23151450,"url":"https://github.com/felixthec/openapi-fastapi-client","last_synced_at":"2025-08-17T20:31:58.790Z","repository":{"id":63149689,"uuid":"564465979","full_name":"FelixTheC/openapi-fastapi-client","owner":"FelixTheC","description":"A tool to autogenerate FastApi Clients from given openapi.yaml.","archived":false,"fork":false,"pushed_at":"2022-12-07T07:00:35.000Z","size":2696,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-15T08:27:59.946Z","etag":null,"topics":["fastapi","openapi3","python3","typer"],"latest_commit_sha":null,"homepage":"","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/FelixTheC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-10T19:27:40.000Z","updated_at":"2024-02-03T04:24:59.000Z","dependencies_parsed_at":"2023-01-24T14:00:10.056Z","dependency_job_id":null,"html_url":"https://github.com/FelixTheC/openapi-fastapi-client","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FelixTheC%2Fopenapi-fastapi-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FelixTheC%2Fopenapi-fastapi-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FelixTheC%2Fopenapi-fastapi-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FelixTheC%2Fopenapi-fastapi-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FelixTheC","download_url":"https://codeload.github.com/FelixTheC/openapi-fastapi-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230163518,"owners_count":18183246,"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","openapi3","python3","typer"],"created_at":"2024-12-17T18:33:18.808Z","updated_at":"2024-12-17T18:33:19.271Z","avatar_url":"https://github.com/FelixTheC.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Python 3.10](https://img.shields.io/badge/python-3.10-blue.svg)](https://www.python.org/downloads/release/python-3100/)\n![Python application](https://github.com/FelixTheC/openapi-fastapi-client/workflows/Python%20application/badge.svg)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat\u0026labelColor=ef8336)](https://pycqa.github.io/isort/)\n\n\n# Openapi yaml file to FastApi Client\nA commandline tool to generate Api `functions` and their required `pydantic Model` Schema from an `openapi.yaml` of version 3\n\n## Installation\n```shell\npip install openapi-fastapi-client\n```\n\n## Usage\n```shell\nopenapi-fastapi-client ./openapi.yaml ./my-client\n```\n```shell\nopenapi-fastapi-client ./openapi.yaml ./my-client --async\n```\n- this will generate under the folder `my-client` following files\n  - `__init__.py` if not exists\n  - `api.py` here are all function calls to the external api\n  - `schema.py` here are all pydantic Models\n  \n\n## Arguments\n- `OPENAPI_FILE  [required]`\n- `OUTPUT_PATH   [required]`\n\n## Options\n- `--sync`  All requests to the client are synchronous.  _default_\n- `--async` All requests to the client are asynchronous with __aiohttp__.\n\n## Help\n```shell\nopenapi-fastapi-client --help\n```\n\n![](openapi-fastapi-client_long.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelixthec%2Fopenapi-fastapi-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelixthec%2Fopenapi-fastapi-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelixthec%2Fopenapi-fastapi-client/lists"}