-
fastapi-auth-middleware
Lightweight auth middleware for FastAPI that just works. Fits most auth workflows with only a few lines of code
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
You’re looking for a auth middleware and the context variables feature of python. Not exactly dependency injection, more like thread-save global variables. Check out starlettes context middleware: https://starlette-context.readthedocs.io/en/latest/middleware.html and https://docs.python.org/3/library/contextvars.html. You may also have a look at one of my personal projects for inspiration: https://github.com/code-specialist/fastapi-auth-middleware
Related posts
-
Developed Python CLI to easily download Dutch point cloud data
-
Unlocking Profit Potential: Building an Arbitrage Betting Client with Hexagonal Architecture in Golang
-
Bountysource Stole at Least $17,000 from Open Source Developers
-
Fnug runs all your lints, tests and commands at once, in the terminal
-
Airbyte Source to Read from SAP ERP, BW or Odata