fastapi-users-db-sqlalchemy
FastAPI Users database adapter for SQLAlchemy
Decision gist · record as of 2026-08-14
Yes, if you are building a FastAPI application and need user authentication with SQLAlchemy. The package has low install friction, no known vulnerabilities, and a permissive license. However, the 587-day release gap and dormant maintenance status mean you should verify compatibility with your specific versions of fastapi-users and sqlalchemy before committing to production use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; assumes an existing FastAPI application and SQLAlchemy async session setup.
- Low friction installation with only two runtime dependencies (fastapi-users and sqlalchemy).
- Maintenance is dormant—no releases in 587 days—but the package is marked Production/Stable and the repository remains active with a recent commit on 2025-01-04.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions.
last release 2025-01-04 (587 days) · last repo commit 2025-01-04 · 40 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,349,377 downloads/mo, #4,018 on PyPI
Alternatives
Verify before relying
pip install fastapi-users-db-sqlalchemy
from fastapi_users_db_sqlalchemy import SQLAlchemyUserDatabase
from sqlalchemy.ext.asyncio import AsyncSession
# Integrate with fastapi-users and your SQLAlchemy models
user_db = SQLAlchemyUserDatabase(session, User)- Whether the 587-day release gap indicates the package is stable or at risk of becoming unmaintained.
- Compatibility guarantees with recent versions of fastapi-users and sqlalchemy beyond what classifiers declare.
What it is and what it does
This package is a database adapter that bridges FastAPI Users (a user management library) with SQLAlchemy ORM, allowing you to persist user data in a relational database. It handles the integration between FastAPI Users' authentication logic and your SQLAlchemy models, so you don't have to write the adapter yourself.
You use it by installing it alongside fastapi-users and sqlalchemy, then instantiating its database class with your SQLAlchemy session and user model. It's designed to work with FastAPI's async patterns and supports modern Python versions (3.9–3.13). The package is marked Production/Stable but has not been released in over a year, so while it appears complete for its scope, you should verify it still works with your target versions of its dependencies.
Use it for
- Add a complete user registration and login system to a FastAPI app backed by a SQL database without writing authentication code from scratch.
- Integrate FastAPI Users with an existing SQLAlchemy schema to add user management to a legacy or new async FastAPI project.
- Build a multi-tenant or role-based access control system by extending FastAPI Users' user model through SQLAlchemy ORM.
- Quickly prototype a FastAPI service with built-in user authentication and session management using SQLAlchemy as the persistence layer.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building a FastAPI application and need user authentication with SQLAlchemy.
The package has low install friction, no known vulnerabilities, and a permissive license. However, the 587-day release gap and dormant maintenance status mean you should verify compatibility with your specific versions of fastapi-users and sqlalchemy before committing to production use.
Install
fastapi-users-db-sqlalchemy on PyPI
Before you install
Low friction installation with only two runtime dependencies (fastapi-users and sqlalchemy). Maintenance is dormant—no releases in 587 days—but the package is marked Production/Stable and the repository remains active with a recent commit on 2025-01-04.
Requires Python 3.9 or later; assumes an existing FastAPI application and SQLAlchemy async session setup.
License in practice
Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions.
Quickstart
pip install fastapi-users-db-sqlalchemy
from fastapi_users_db_sqlalchemy import SQLAlchemyUserDatabase
from sqlalchemy.ext.asyncio import AsyncSession
# Integrate with fastapi-users and your SQLAlchemy models
user_db = SQLAlchemyUserDatabase(session, User)
Verify before relying
- Whether the 587-day release gap indicates the package is stable or at risk of becoming unmaintained.
- Compatibility guarantees with recent versions of fastapi-users and sqlalchemy beyond what classifiers declare.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesfastapi-userssqlalchemy |
| Maintenance | Dormant 587 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,349,377 / month, #4,018 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: AsyncIOFramework :: FastAPIIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTP :: Session |
Evidence: fastapi_users_db_sqlalchemy-7.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “fastapi user authentication sqlalchemy”
- fastapi-users-db-sqlalchemyProvides a SQLAlchemy ORM adapter for FastAPI Users, enabling user…
- fastapi-usersProvides ready-to-use user registration, login, password reset, and…
- starlette-adminStarlette-admin provides a ready-made admin interface for Starlette…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also fastapi-users · FastAPI-SQLAlchemy · ormar · fastapi-filter · cerbos-sqlalchemy · fastcrud · sqlalchemy-vertica · sqlalchemy-adapter · SQLAlchemy · sqlmodel