fastapi-users
full-stack-fastapi-template
Our great sponsors
fastapi-users | full-stack-fastapi-template | |
---|---|---|
7 | 28 | |
4,053 | 22,914 | |
3.8% | - | |
8.1 | 9.4 | |
21 days ago | 5 days ago | |
Python | TypeScript | |
MIT License | MIT 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.
full-stack-fastapi-template
-
Building a Secure API with FastAPI, PostgreSQL, and Hanko Authentication
This project is a modification of the authentication flow of the awesome repository made by tiangolo at full-stack-fastapi-postgresql
- Do you know any quality FastAPI starter projects?
-
What is a sensible way to go about designing an authentication microservice?
FastAPI with a PostgreSQL database: https://github.com/tiangolo/full-stack-fastapi-postgresql/tree/master
- Faster way to kickstart and develop backend REST apis?
-
Is a Framework like Django possible in Rust
Ha! I do write SQL since that's where I cut my teeth many years ago. But I mostly use stored procedures where possible. I prefer not to use ORMs - sorry I don't find that side work... I am not saying Django's was bad or inferior, just do not prefer it. For FastAPI - maybe you missed the various repos with everything you mentioned was missing (there are great ones directly from the maintainer as well as others). No more glue than what you find in all the modules in a large Django project, just maybe in different forms and flavors. Besides, we're here to talk about Rust, making me wonder why we're debating two Python projects. Yes, I fell in love with Django, the romance faded in 2018, and I moved on. Feel free to enjoy using it - I'm not trying to sway you away from it!
- Is there any open source project that uses FasAPI?
-
How to build a scalable project file structure for a beginner.
I've just recently switched to a structure that follows Netflix's Dispatch application after starting with https://github.com/tiangolo/full-stack-fastapi-postgresql and it feels way better and organized.
- ORM for FastAPI+PostgreSQL, Tortoise or Sqlalchemy? what would you choose and why?
-
Creating a webpage for data entry
Honestly your easiest option for data gathering would be to create google spreadsheets/forms and give each municipality access. For a custom data entry platform I suggest looking for templates like this one and learning how to add custom logic to the boilerplate: https://github.com/tiangolo/full-stack-fastapi-postgresql
-
FastAPI Best Practices
I would encourage you to take a look at this repo: https://github.com/tiangolo/full-stack-fastapi-postgresql This is a boilerplate of an application made with fastapi, prepared by the creator of the fastapi himself. You can even set it up yourself locally and have a look how it’s organised. I know it has a lot of different services included, but I find the fastapi part itself to be well thought. Inside the api directory you can notice another folder named api_v1, so you can have multiple versions of your API routes when needed, with the general code in other places that is more generic and can be reused in all your different API versions. The schemas are separated from the models and models itself have different classes depending on what you would actually like to do with the data. The migrations are managed with alembic based on schemas rather than models itself. The settings are a python class that implicitly reads the .env file in your project’s directory. And many, many other interesting patterns to explore. Too much to write in one comment to be honest.
What are some alternatives?
fastapi-utils - Reusable utilities for FastAPI
fastapi-starter - A FastAPI based low code starter/boilerplate: SQLAlchemy 2.0 (async), Postgres, React-Admin, pytest and cypress
starsessions - Advanced sessions for Starlette and FastAPI frameworks
fastapi-react - 🚀 Cookiecutter Template for FastAPI + React Projects. Using PostgreSQL, SQLAlchemy, and Docker
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.
uvicorn-gunicorn-fastapi-docker - Docker image with Uvicorn managed by Gunicorn for high-performance FastAPI web applications in Python with performance auto-tuning.
openapi-generator - OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
cookiecutter-djangopackage - A cookiecutter template for creating reusable Django packages quickly.
fastapi-crudrouter - A dynamic FastAPI router that automatically creates CRUD routes for your models
docker-celery-flower - Minimum docker/fastapi/celery/flower setup
fastapi_contrib - Opinionated set of utilities on top of FastAPI
fastapi-azure-auth - Easy and secure implementation of Azure Entra ID (previously AD) for your FastAPI APIs 🔒 B2C, single- and multi-tenant support.