PyCon UK 2019

FastAPI from the ground up
2019-09-15 , Ferrier Hall

What comes next after Django and it's Django REST Framework? This talk shows how to build a simple REST API for a database from the ground up using FastAPI.


The normal pattern for building a modern web application is a Javascript front-end application hitting a REST or GraphQL API back-end API. Django's DRF has been one of the standards for Python API servers but has the idiosyncrasies and drawbacks of Django, so what comes next?

This talk will go through the current available options, explaining why I settled on FastAPI. It will then go through the process of building a simple REST API from the ground up, explaining the choices available and covering url mapping, databases and authentication/authorization.

To get the most out of it, you will already know some Python. Experience with REST APIs and databases will help, but isn't required.


Is your proposal suitable for beginners? – no

I've been writing Python for around 20 years now, giving talks every so often and maintaining stuff for the community where I can. I have a big interest in automated testing of software and building simple, clean APIs between servers and clients.