fastapi-users
databases
Our great sponsors
fastapi-users | databases | |
---|---|---|
7 | 15 | |
4,034 | 3,692 | |
3.3% | 1.0% | |
8.1 | 6.1 | |
12 days ago | 9 days ago | |
Python | Python | |
MIT License | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
fastapi-users
-
Thoughts on FastAPI Users
I'm working with it now as a backend to svelte! It's very ergonomic especially since I'm using sqlalchemy + postgres (asyncpg) so I could just copy paste the example code. Heads up though that it doesn't implement any form of token refresh pattern so you'll have to do that yourself.
-
JWT Auth Library Issue
It might be worth checking out fastapi-users. It has a lot of increased functionality like JWT with refresh, OAuth social login, cookie sessions, and more. It’s pretty cool: https://github.com/fastapi-users/fastapi-users
-
Ideas for Svelte + Python backed + social auth
1) There is https://github.com/fastapi-users/fastapi-users library for FastAPI, but social auth is not very clear documented, DB not included.
-
Is there a simple but robust authentication library I can use with FastAPI?
found this: https://github.com/fastapi-users/fastapi-users
-
Has anyone packaged FastAPI middleware so it can be used easily for multiple projects?
Well there is already an existing package that works pretty well : https://github.com/frankie567/fastapi-users
-
OAuth2 examples for Deno
In the Python world, Flask and FastAPI are more performant, lighter frameworks. The FastAPI Users module looks like a good option for authentication.
-
FastAPI framework, high perf, easy to learn, fast to code, ready for production
I'd recommend you check out FastAPI-Users if you haven't already: https://github.com/frankie567/fastapi-users
It provides a users framework with OAuth2 integration, support for different ORM backends, and routes for authentication, verification, etc.
Full disclosure: I am a contributor to this project.
databases
- Whats the standard way for interacting with a DB.
-
Getting Started with Fast-Api 🏎️ and Docker🐳
In the code ,we are using SQLAlchemy as our ORM(Object Relational Mapper) and Databases as our query builder.
-
A Deep Dive into Connecting FastAPI with SingleStore.
MySQL is a powerful and popular database, and it's well-suited for use with Python. In the following section, we are going through how to set up a connection to a MySQL database in an asynchronous manner using the create_asynchrouns_engine function from SQLAlchemy. We'll also use the databases package and the aiomysql extra dependency. We'll also adapt the SQLAlchemy declarative approach to defining our users' table.
-
Django 4.1 alpha 1 released
To take an example: I switched a service over from doing synchronous (plain def everywhere) to async (async def and await everywhere, with async DB, and saw… basically no performance improvement.
- PostgREST v9.0.0
-
python asyncio, how to prevent the other functions "block" themselves when connecting to db?
No, as I said, async db connection is the key. You can do that with SQLAlchemy using the databases library, but since you are not using SQLAlchemy it makes more sense to use the underlying db driver, aiomysql, directly.
- Database library
-
Best approach for async SQLAlchemy in FastAPI
Using the encode/databases library and forgoing SQLAlchemy's ORM
-
FastAPI + Ormar + Alembic setup
ormar is a mini async ORM for python. It uses sqlalchemy for building queries, databases for asynchronous execution of queries, and pydantic for data validation. You can create an ormar model and generate pydantic models from it.
-
async sqlalchemy question db question
works but there seems to be a difference between the regular slqalchemy syntax from what https://github.com/encode/databases/ is using in the docs?
What are some alternatives?
fastapi-utils - Reusable utilities for FastAPI
aiomysql - aiomysql is a library for accessing a MySQL database from the asyncio
starsessions - Advanced sessions for Starlette and FastAPI frameworks
aiosql - Simple SQL in Python
starlette-context - Middleware for Starlette that allows you to store and access the context data of a request. Can be used with logging so logs automatically use request headers such as x-request-id or x-correlation-id.
asyncmy - A fast asyncio MySQL/MariaDB driver with replication protocol support
full-stack-fastapi-template - Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.
alembic - A database migrations tool for SQLAlchemy.
openapi-generator - OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
fastapi-crudrouter - A dynamic FastAPI router that automatically creates CRUD routes for your models
mangum - AWS Lambda support for ASGI applications