{"id":13424561,"url":"https://github.com/aminalaee/sqladmin","last_synced_at":"2026-02-04T09:30:19.632Z","repository":{"id":36955915,"uuid":"440814573","full_name":"aminalaee/sqladmin","owner":"aminalaee","description":"SQLAlchemy Admin for FastAPI and Starlette","archived":false,"fork":false,"pushed_at":"2025-02-20T08:02:36.000Z","size":3373,"stargazers_count":2162,"open_issues_count":90,"forks_count":217,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-05-13T00:12:47.152Z","etag":null,"topics":["admin","admin-dashboard","asgi","asyncio","fastapi","python","sqlalchemy","starlette","web","wsgi"],"latest_commit_sha":null,"homepage":"https://aminalaee.github.io/sqladmin/","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/aminalaee.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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-12-22T10:09:54.000Z","updated_at":"2025-05-12T13:54:58.000Z","dependencies_parsed_at":"2024-01-03T02:29:51.247Z","dependency_job_id":"1c5fbb73-8719-4fcd-9b66-3e855f063c3b","html_url":"https://github.com/aminalaee/sqladmin","commit_stats":{"total_commits":368,"total_committers":62,"mean_commits":5.935483870967742,"dds":0.3288043478260869,"last_synced_commit":"d99817aa25edf9039e381f42f5ea2a351457e012"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminalaee%2Fsqladmin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminalaee%2Fsqladmin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminalaee%2Fsqladmin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminalaee%2Fsqladmin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aminalaee","download_url":"https://codeload.github.com/aminalaee/sqladmin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253843222,"owners_count":21972874,"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":["admin","admin-dashboard","asgi","asyncio","fastapi","python","sqlalchemy","starlette","web","wsgi"],"created_at":"2024-07-31T00:00:56.232Z","updated_at":"2026-02-04T09:30:19.620Z","avatar_url":"https://github.com/aminalaee.png","language":"Python","funding_links":[],"categories":["Third-Party Extensions","Python","Admin","Uncategorized","Extensions","FastAPI Utilities","Miscellaneous"],"sub_categories":["Admin","Uncategorized"],"readme":"\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/aminalaee/sqladmin\"\u003e\n    \u003cimg width=\"400px\" src=\"https://raw.githubusercontent.com/aminalaee/sqladmin/main/docs/assets/images/banner.png\" alt\"SQLAdmin\"\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/aminalaee/sqladmin/actions\"\u003e\n    \u003cimg src=\"https://github.com/aminalaee/sqladmin/workflows/Test%20Suite/badge.svg\" alt=\"Build Status\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/aminalaee/sqladmin/actions\"\u003e\n    \u003cimg src=\"https://github.com/aminalaee/sqladmin/workflows/Publish/badge.svg\" alt=\"Publish Status\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://codecov.io/gh/aminalaee/sqladmin\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/aminalaee/sqladmin/branch/main/graph/badge.svg\" alt=\"Coverage\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/sqladmin/\"\u003e\n    \u003cimg src=\"https://badge.fury.io/py/sqladmin.svg\" alt=\"Package version\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/sqladmin\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/pyversions/sqladmin.svg?color=%2334D058\" alt=\"Supported Python versions\"\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n# SQLAlchemy Admin for Starlette/FastAPI\n\nSQLAdmin is a flexible Admin interface for SQLAlchemy models.\n\nMain features include:\n\n* [SQLAlchemy](https://github.com/sqlalchemy/sqlalchemy) sync/async engines\n* [Starlette](https://github.com/encode/starlette) integration\n* [FastAPI](https://github.com/tiangolo/fastapi) integration\n* [WTForms](https://github.com/wtforms/wtforms) form building\n* [SQLModel](https://github.com/tiangolo/sqlmodel) support\n* UI using [Tabler](https://github.com/tabler/tabler)\n\n---\n\n**Documentation**: [https://aminalaee.github.io/sqladmin](https://aminalaee.github.io/sqladmin)\n\n**Source Code**: [https://github.com/aminalaee/sqladmin](https://github.com/aminalaee/sqladmin)\n\n**Online Demo**: [Demo](https://sqladmin-demo.aminalaee.dev/admin/)\n\n---\n\n## Installation\n\nInstall using `pip`:\n\n```shell\n$ pip install sqladmin\n```\n\nThis will install the full version of sqladmin with optional dependencies:\n\n```shell\n$ pip install \"sqladmin[full]\"\n```\n\n---\n\n## Screenshots\n\n\u003cimg width=\"1492\" alt=\"sqladmin-1\" src=\"https://user-images.githubusercontent.com/19784933/208232730-0114a155-2740-4e89-9d73-64a4e51a5cf5.png\"\u003e\n\u003cimg width=\"1492\" alt=\"sqladmin-2\" src=\"https://user-images.githubusercontent.com/19784933/208232731-6d783dde-b93e-41c0-911b-3d1c3c73f1d5.png\"\u003e\n\n## Quickstart\n\nLet's define an example SQLAlchemy model:\n\n```python\nfrom sqlalchemy import Column, Integer, String, create_engine\nfrom sqlalchemy.orm import declarative_base\n\n\nBase = declarative_base()\nengine = create_engine(\n    \"sqlite:///example.db\",\n    connect_args={\"check_same_thread\": False},\n)\n\n\nclass User(Base):\n    __tablename__ = \"users\"\n\n    id = Column(Integer, primary_key=True)\n    name = Column(String)\n\n\nBase.metadata.create_all(engine)  # Create tables\n```\n\nIf you want to use `SQLAdmin` with `FastAPI`:\n\n```python\nfrom fastapi import FastAPI\nfrom sqladmin import Admin, ModelView\n\n\napp = FastAPI()\nadmin = Admin(app, engine)\n\n\nclass UserAdmin(ModelView, model=User):\n    column_list = [User.id, User.name]\n\n\nadmin.add_view(UserAdmin)\n```\n\nOr if you want to use `SQLAdmin` with `Starlette`:\n\n```python\nfrom sqladmin import Admin, ModelView\nfrom starlette.applications import Starlette\n\n\napp = Starlette()\nadmin = Admin(app, engine)\n\n\nclass UserAdmin(ModelView, model=User):\n    column_list = [User.id, User.name]\n\n\nadmin.add_view(UserAdmin)\n```\n\nNow visiting `/admin` on your browser you can see the `SQLAdmin` interface.\n\n## Related projects and inspirations\n\n* [Flask-Admin](https://github.com/flask-admin/flask-admin) Admin interface for Flask supporting different database backends and ORMs. This project has inspired SQLAdmin extensively and most of the features and configurations are implemented the same.\n* [FastAPI-Admin](https://github.com/fastapi-admin/fastapi-admin) Admin interface for FastAPI which works with `TortoiseORM`.\n* [Dashboard](https://github.com/encode/dashboard) Admin interface for ASGI frameworks which works with the `orm` package.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faminalaee%2Fsqladmin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faminalaee%2Fsqladmin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faminalaee%2Fsqladmin/lists"}