{"id":19357850,"url":"https://github.com/mongkok/fastapi-debug-toolbar","last_synced_at":"2025-05-16T09:03:40.177Z","repository":{"id":42384964,"uuid":"388220703","full_name":"mongkok/fastapi-debug-toolbar","owner":"mongkok","description":"A debug toolbar for FastAPI.","archived":false,"fork":false,"pushed_at":"2024-11-18T02:53:48.000Z","size":7421,"stargazers_count":148,"open_issues_count":14,"forks_count":17,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-09T01:41:10.629Z","etag":null,"topics":["ariadne","debug","fastapi","graphene","graphql","profiling","pyinstrument","sqlalchemy","swagger","tortoise-orm"],"latest_commit_sha":null,"homepage":"https://fastapi-debug-toolbar.domake.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mongkok.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-07-21T19:11:20.000Z","updated_at":"2025-04-28T07:08:46.000Z","dependencies_parsed_at":"2024-02-12T19:54:04.770Z","dependency_job_id":"676c6e68-6081-4488-8a49-630ae31b56da","html_url":"https://github.com/mongkok/fastapi-debug-toolbar","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongkok%2Ffastapi-debug-toolbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongkok%2Ffastapi-debug-toolbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongkok%2Ffastapi-debug-toolbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongkok%2Ffastapi-debug-toolbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mongkok","download_url":"https://codeload.github.com/mongkok/fastapi-debug-toolbar/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254501554,"owners_count":22081528,"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":["ariadne","debug","fastapi","graphene","graphql","profiling","pyinstrument","sqlalchemy","swagger","tortoise-orm"],"created_at":"2024-11-10T07:09:27.182Z","updated_at":"2025-05-16T09:03:40.116Z","avatar_url":"https://github.com/mongkok.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![FastAPI](https://raw.githubusercontent.com/mongkok/fastapi-debug-toolbar/main/debug_toolbar/statics/img/icon-green.svg) Debug Toolbar\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://fastapi-debug-toolbar.domake.io\"\u003e\n        \u003cimg src=\"https://user-images.githubusercontent.com/5514990/131232994-621774a8-1662-468d-87d8-2199b93387d6.gif\" alt=\"FastAPI Debug Toolbar\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003cem\u003e🐞A debug toolbar for FastAPI based on the original django-debug-toolbar.🐞\u003c/em\u003e\n    \u003cbr\u003e\u003cem\u003e\u003cb\u003eSwagger UI\u003c/b\u003e \u0026 \u003cb\u003eGraphQL\u003c/b\u003e are supported.\u003c/em\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/mongkok/fastapi-debug-toolbar/actions\"\u003e\n        \u003cimg src=\"https://github.com/mongkok/fastapi-debug-toolbar/actions/workflows/test-suite.yml/badge.svg\" alt=\"Test\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://codecov.io/gh/mongkok/fastapi-debug-toolbar\"\u003e\n        \u003cimg src=\"https://img.shields.io/codecov/c/github/mongkok/fastapi-debug-toolbar?color=%2334D058\" alt=\"Coverage\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.codacy.com/gh/mongkok/fastapi-debug-toolbar/dashboard\"\u003e\n        \u003cimg src=\"https://app.codacy.com/project/badge/Grade/e9d8ba3973264424a3296016063b4ab5\" alt=\"Codacy\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/fastapi-debug-toolbar\"\u003e\n        \u003cimg src=\"https://img.shields.io/pypi/v/fastapi-debug-toolbar\" alt=\"Package version\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\n---\n\n**Documentation**: [https://fastapi-debug-toolbar.domake.io](https://fastapi-debug-toolbar.domake.io)\n\n---\n\n## Installation\n\n```sh\npip install fastapi-debug-toolbar\n```\n\n## Quickstart\n\nAdd `DebugToolbarMiddleware` middleware to your FastAPI application:\n\n```py\nfrom debug_toolbar.middleware import DebugToolbarMiddleware\nfrom fastapi import FastAPI\n\napp = FastAPI(debug=True)\napp.add_middleware(DebugToolbarMiddleware)\n```\n\n## SQLAlchemy\n\nPlease make sure to use the *\"Dependency Injection\"* system as described in the [FastAPI docs](https://fastapi.tiangolo.com/tutorial/sql-databases/#create-a-dependency) and add the `SQLAlchemyPanel` to your panel list:\n\n```py\napp.add_middleware(\n    DebugToolbarMiddleware,\n    panels=[\"debug_toolbar.panels.sqlalchemy.SQLAlchemyPanel\"],\n)\n```\n\n## Tortoise ORM\n\nAdd the `TortoisePanel` to your panel list:\n\n```py\napp.add_middleware(\n    DebugToolbarMiddleware,\n    panels=[\"debug_toolbar.panels.tortoise.TortoisePanel\"],\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongkok%2Ffastapi-debug-toolbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmongkok%2Ffastapi-debug-toolbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongkok%2Ffastapi-debug-toolbar/lists"}