I've recently done a lot of reading and experimenting with different FastAPI features, and decided to document that in a cookiecutter recipe for future references. The idea is to use this to bootstrap future FastAPI projects instead of copying bits and pieces from the documentation and from past projects. Currently, this support examples for e.g. … Continue reading Cookiecutter for FastAPI Projects
Tag: python
Computed fields in pydantic
I noticed that I haven't written anything in about a year, so I figured it would be nice to document some smaller things that I've learned recently. In order to parse a configuration file, I recently needed to compute fields in a pydantic.BaseModel so that the information was accessible not only via the property, but … Continue reading Computed fields in pydantic