{"id":48337077,"url":"https://github.com/smithyhq/sqladmin","last_synced_at":"2026-04-05T14:00:45.695Z","repository":{"id":36955915,"uuid":"440814573","full_name":"smithyhq/sqladmin","owner":"smithyhq","description":"SQLAlchemy Admin for FastAPI and Starlette","archived":false,"fork":false,"pushed_at":"2026-03-31T08:43:54.000Z","size":3528,"stargazers_count":2696,"open_issues_count":105,"forks_count":270,"subscribers_count":16,"default_branch":"main","last_synced_at":"2026-03-31T10:27:41.922Z","etag":null,"topics":["admin","admin-dashboard","asgi","asyncio","fastapi","python","sqlalchemy","starlette","web","wsgi"],"latest_commit_sha":null,"homepage":"https://smithyhq.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/smithyhq.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-12-22T10:09:54.000Z","updated_at":"2026-03-31T08:43:58.000Z","dependencies_parsed_at":"2024-01-03T02:29:51.247Z","dependency_job_id":"1c5fbb73-8719-4fcd-9b66-3e855f063c3b","html_url":"https://github.com/smithyhq/sqladmin","commit_stats":{"total_commits":368,"total_committers":62,"mean_commits":5.935483870967742,"dds":0.3288043478260869,"last_synced_commit":"d99817aa25edf9039e381f42f5ea2a351457e012"},"previous_names":["smithyhq/sqladmin"],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/smithyhq/sqladmin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smithyhq%2Fsqladmin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smithyhq%2Fsqladmin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smithyhq%2Fsqladmin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smithyhq%2Fsqladmin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smithyhq","download_url":"https://codeload.github.com/smithyhq/sqladmin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smithyhq%2Fsqladmin/sbom","scorecard":{"id":189421,"data":{"date":"2025-08-11","repo":{"name":"github.com/aminalaee/sqladmin","commit":"4d230acd80d4016b23159e4249aa507973901b01"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5,"checks":[{"name":"Code-Review","score":7,"reason":"Found 22/30 approved changesets -- score normalized to 7","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":10,"reason":"11 commit(s) and 5 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Warn: no topLevel permission defined: .github/workflows/test-suite.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/aminalaee/sqladmin/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/aminalaee/sqladmin/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-suite.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/aminalaee/sqladmin/test-suite.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-suite.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/aminalaee/sqladmin/test-suite.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test-suite.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/aminalaee/sqladmin/test-suite.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/publish.yml:21","Warn: pipCommand not pinned by hash: .github/workflows/test-suite.yml:37","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T20:21:15.208Z","repository_id":36955915,"created_at":"2025-08-16T20:21:15.208Z","updated_at":"2025-08-16T20:21:15.208Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31437927,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T13:13:19.330Z","status":"ssl_error","status_checked_at":"2026-04-05T13:13:17.778Z","response_time":75,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["admin","admin-dashboard","asgi","asyncio","fastapi","python","sqlalchemy","starlette","web","wsgi"],"created_at":"2026-04-05T03:00:23.726Z","updated_at":"2026-04-05T14:00:45.689Z","avatar_url":"https://github.com/smithyhq.png","language":"Python","funding_links":[],"categories":["Miscellaneous","Third-Party Extensions","Python","FastAPI Utilities"],"sub_categories":["Admin"],"readme":"\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/smithyhq/sqladmin\"\u003e\n    \u003cimg width=\"400px\" src=\"https://raw.githubusercontent.com/smithyhq/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/smithyhq/sqladmin/actions\"\u003e\n    \u003cimg src=\"https://github.com/smithyhq/sqladmin/workflows/Test%20Suite/badge.svg\" alt=\"Build Status\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/smithyhq/sqladmin/actions\"\u003e\n    \u003cimg src=\"https://github.com/smithyhq/sqladmin/workflows/Publish/badge.svg\" alt=\"Publish Status\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://codecov.io/gh/smithyhq/sqladmin\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/smithyhq/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://smithyhq.github.io/sqladmin](https://smithyhq.github.io/sqladmin)\n\n**Source Code**: [https://github.com/smithyhq/sqladmin](https://github.com/smithyhq/sqladmin)\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%2Fsmithyhq%2Fsqladmin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmithyhq%2Fsqladmin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmithyhq%2Fsqladmin/lists"}