-
π 4 Tips for Building a Production-Ready FastAPI B...
Great list of 4 tips for running fastapi applications. Keep routes small Fat routers with all of the logic built
-
π Add a healthcheck to your FastAPI app | Pype.dev
Nice example of adding a healthcheck to fastapi, and integrating it with docker. Don't forget to include curl in the in
-
π FastHX
Very interesting approach to htmx and fast api. It uses separate decorators for returning template partials and json th
-
π FastHX
Very interesting approach to htmx and fast api. It uses separate decorators for returning template partials and json th
-
π Background Tasks - FastAPI
fastapi comes with a concept of background tasks which are functions that can be ran in the background after a function
-
π Fields - Pydantic
exclude=True and repr=False is a good pydantic combination for secret attributes such as user passwords, or hashed p
-
π Handling Errors - FastAPI
This page shows how to customize your fastapi errors. I found this very useful to setup common templates so that I can
-
π fastapi decorators
I've been using these decorators to modify the behavior of specific routes. It will do things like 404 admin only route
-
π fastapi https url_for
jinja's urlfor in fastapi does not account for https by default, there is probably a better way, but this is a way t
-
π FastAPI - dependency inside Middleware? - Stack ...
After struggling to get dependencies inside of middleware I learned that you can make global dependencies at the app lev
-
π Handling Errors - FastAPI
This page shows how to customize your fastapi errors. I found this very useful to setup common templates so that I can
-
π logs with FastAPI and Uvicorn Β· Issue #1508 Β· ti...
Setting an additional log handler to the uvicorn logger for access logs in fastapi was not straightforward, but This pos
-
π How to group FastAPI endpoints in Swagger UI?
Setting tags in your fastapi endpoints will group them in the docs. You can also set some metadata around the t
-
π Path Operation Advanced Configuration - FastAPI
Excluding routes from fastapi docs, can be done from the route configuration using includeinschema. This is
-
π Protect API docs behind authentication? Β· Issue ...
You can protect your fastapi docs behind auth so that not only can certain roles not run certain routes, but they cannot
-
π SebastiΓ‘n RamΓrez on X: "Now @FastAPI has 65k+ G...
Fastapi passes flask in GitHub stars! [![screenshot of https://twitter.com/tiangolo/status/1729153717956715007](http://
-
π florimondmanca/arel: Lightweight browser hot rel...
arel is a "Lightweight browser hot reload for Python ASGI web apps" I just implemented this on my thoughts website usin
-
π Automatic browser reloading in FastAPI
I just discovered arel for hot reloading python applications when content changes from
-
π Bigger Applications - Multiple Files - FastAPI
Fastapi lets you tag your APIRouter's so that the swagger docs are grouped according to the router. python route
-
π Create Models with a Many-to-Many Link - SQLMode...
Creating many to many relationships with sqlmodel requires a LinkTable Model. The link model will keep track of the lin
-
π python - How to use a Pydantic model with Form d...
I went down the route of leveraging the json-enc extention in htmx, but later realized that this completely breaks bro
-
π > htmx ~ The json-enc Extension
json-enc extension converts url encoded form values into json encoded data, this is very useful for fastapi to have the
-
π Header Parameters - FastAPI
Getting request headers in fastapi has a pretty nice stetup, it allows you to get headers values as function arguments,
-
π Form Data - FastAPI
Getting form data inside of fastapi was not intuitive to me at first. Everything I had used in fastapi leaned on pydanti
-
π Templates - FastAPI
A guide to add Jinja2Templates to fastapi.
-
π python 3.x - FastAPI redirection for trailing sl...
I am trying to use htmx on a new fastapi site for my thoughts, and have been hitting this error. js Mixed Content:
-
π Static Files - FastAPI
Mounting static files in fastapi. python from fastapi import FastAPI from fastapi.staticfiles import StaticFiles a
-
π First-class session support in FastAPI Β· Issue #...
Here is a snippet provided by @tiangolo to store the users jwt inside of a session cookie in fatapi. This was written i
-
π Filter Data - WHERE - SQLModel
When fetching pydantic models from the database with sqlmodel, and you cannot select your item by id, you probably need
-
π URL Decoding query strings or form parameters in...
In order to turn url encoded links back into links that I would find in the database of my thoughts project I need to ur