CategoryPython

Python argparse cheat sheet

I have a confession to make: I never remember how to use argparse. Maybe it’s because I don’t use it often enough to have how it works memorized, but I certainly use it often enough that I’m annoyed every time I have to look it up. Argparse? More like ARGHparse. continue reading…

Introduction to the fastapi python framework

I have been working on a new python-based API recently, and on a colleague’s suggestion we decided to use fastapi as our framework. Fastapi is a python-based framework which encourages documentation using Pydantic and OpenAPI (formerly Swagger), fast development and deployment with Docker, and easy tests thanks to the Starlette continue reading…