Help - I Accidentally Closed My Docker Terminal Window

I tend to run my docker containers in the foreground, which happens by default when you run docker-compose up. I am then rewarded with a steady stream of output from all my containers eg. elasticsearch, kibana, API etc. It can...

Nested List Comprehension Syntax

I have a list of objects and would like to transform it into a list of lists of objects. That sounds like the start of tongue twister so it may be easier to demonstrate visually:

Conditional Response Class in FastAPI

I discovered recently that I could create a custom response class for use with FastAPI and that I could use this to create a pretty printed json-like reponse for my API. I didn’t want to force all my responses to...