TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Follow publication

Member-only story

Create a fast auto-documented, maintainable and easy-to-use Python API in 5 lines of code with FastAPI (part 1)

Mike Huls
TDS Archive
Published in
4 min readSep 20, 2021

--

Building and using our API will be as easy as using this vending machine (image by Jenna Hamra on Pexels)

Introduction to FastAPI

Installation

pip install fastapi uvicorn

Creating our API

from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def simple_route()…

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Mike Huls
Mike Huls

Written by Mike Huls

I write about interesting programming-related things: techniques, system architecture, software design and how to apply them in the best way. — mikehuls.com

Responses (1)

Write a response