{"id":14979089,"url":"https://github.com/kludex/fastapi-asyncapi","last_synced_at":"2025-08-10T11:32:21.336Z","repository":{"id":39674570,"uuid":"340472304","full_name":"Kludex/fastapi-asyncapi","owner":"Kludex","description":"OpenAPI is not enough for you? 😡 Let's try AsyncAPI! :angel:","archived":false,"fork":false,"pushed_at":"2023-10-02T11:56:01.000Z","size":607,"stargazers_count":71,"open_issues_count":7,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-06T11:17:36.473Z","etag":null,"topics":["asyncapi","fastapi","websockets"],"latest_commit_sha":null,"homepage":"https://kludex.github.io/fastapi-asyncapi/","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/Kludex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"Kludex"}},"created_at":"2021-02-19T19:42:07.000Z","updated_at":"2025-05-06T14:09:32.000Z","dependencies_parsed_at":"2024-09-19T01:07:53.506Z","dependency_job_id":"2c8ab85e-ca25-45ec-a470-e7586f69ea88","html_url":"https://github.com/Kludex/fastapi-asyncapi","commit_stats":{"total_commits":13,"total_committers":3,"mean_commits":4.333333333333333,"dds":"0.15384615384615385","last_synced_commit":"1cd5d234a3c319f1a9e4507974051b26c2f47d84"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Kludex/fastapi-asyncapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kludex%2Ffastapi-asyncapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kludex%2Ffastapi-asyncapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kludex%2Ffastapi-asyncapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kludex%2Ffastapi-asyncapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kludex","download_url":"https://codeload.github.com/Kludex/fastapi-asyncapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kludex%2Ffastapi-asyncapi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269715020,"owners_count":24463500,"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-08-10T02:00:08.965Z","response_time":71,"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":["asyncapi","fastapi","websockets"],"created_at":"2024-09-24T13:59:12.618Z","updated_at":"2025-08-10T11:32:20.965Z","avatar_url":"https://github.com/Kludex.png","language":"Python","funding_links":["https://github.com/sponsors/Kludex"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n    \u003cstrong\u003eFastAPI-AsyncAPI\u003c/strong\u003e\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/Kludex/fastapi-asyncapi\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/last-commit/Kludex/fastapi-asyncapi\" alt=\"Latest Commit\"\u003e\n    \u003c/a\u003e\n        \u003cimg src=\"https://img.shields.io/github/workflow/status/Kludex/fastapi-asyncapi/Test\"\u003e\n        \u003cimg src=\"https://img.shields.io/codecov/c/github/Kludex/fastapi-asyncapi\"\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://pypi.org/project/fastapi-asyncapi\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/pypi/v/fastapi-asyncapi\" alt=\"Package version\"\u003e\n    \u003c/a\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/pyversions/fastapi-asyncapi\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/Kludex/fastapi-asyncapi\"\u003e\n\u003c/p\u003e\n\nFastAPI-AsyncAPI is a utility tool to write documentation for your [FastAPI](https://github.com/tiangolo/fastapi) endpoints using [AsyncAPI](https://github.com/asyncapi).\n\nIt provides support for WebSockets, which is currently missing in OpenAPI.\n\n\n\u003e This package is not completed. Help is wanted.\n\n## Installation\n\n``` bash\npip install fastapi-asyncapi\n```\n\n## Usage\n\n``` python\nfrom fastapi import FastAPI\nfrom pydantic import AnyHttpUrl\n\nfrom fastapi_asyncapi import get_asyncapi, get_asyncapi_html\n\napp = FastAPI(title=\"MyAPI\", version=\"1.0.0\", docs_url=None)\n\n\n@app.get(\"/asyncapi.json\")\nasync def asyncapi_json():\n    return get_asyncapi(title=app.title, version=app.version, routes=app.routes)\n\n\n@app.get(\"/docs\")\nasync def asyncapi_docs():\n    asyncapi_url = AnyHttpUrl(\"asyncapi.json\", scheme=\"http\")\n    return get_asyncapi_html(asyncapi_url=asyncapi_url, title=app.title)\n```\n\n\n## License\n\nThis project is licensed under the terms of the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkludex%2Ffastapi-asyncapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkludex%2Ffastapi-asyncapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkludex%2Ffastapi-asyncapi/lists"}