-
π 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
-
π Darren Burns π± On X: "Here'S An Early Clip Of My...
This looks like a sweet tui postman clone. Darren is really rolling with these tui's. Cant wait to see where this one
-
π 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
-
π 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 - Dependency Inside Middleware? - Stack ...
After struggling to get dependencies inside of middleware I learned that you can make global dependencies at the app lev
-
π 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
-
π 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
-
π 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
-
π Path Operation Advanced Configuration - Fastapi
Excluding routes from fastapi docs, can be done from the route configuration using includeinschema. This is
-
π 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://
-
π Automatic Browser Reloading In Fastapi
I just discovered arel for hot reloading python applications when content changes from
-
π 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
-
π 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
-
π 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
-
π Filter Data - Where - Sqlmodel
When fetching pydantic models from the database with sqlmodel, and you cannot select your item by id, you probably need
-
π 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
-
π Static Files - Fastapi
Mounting static files in fastapi. python from fastapi import FastAPI from fastapi.staticfiles import StaticFiles a
-
π 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:
-
π Templates - Fastapi
A guide to add Jinja2Templates to fastapi.
-
π 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
-
π Header Parameters - Fastapi
Getting request headers in fastapi has a pretty nice stetup, it allows you to get headers values as function arguments,
-
π > 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