liveBook · Manning

Uvicorn

As explained in Software Engineering for Data Scientists

Uvicorn is an asynchronous Python web server implementation for running ASGI applications.

Uvicorn is a Python-based web server that lets FastAPI receive and handle requests. It runs an API application rather than defining the API endpoints itself. section 9.3.2

Launching a prediction API

A FastAPI application can expose a `/churn/` endpoint that accepts validated customer features and returns a churn probability. Run it with Uvicorn, then send JSON input to `http://127.0.0.1:8000/churn`.

How Software Engineering for Data Scientists covers it

How deep it goes
Explains the server role and demonstrates installation, launch, request testing, and network availability.
Examples
Uses a testing endpoint and a customer-churn prediction API queried with JSON inputs.
What you can do after
Operate/configure FastAPI locally with Uvicorn and test a model-serving endpoint through HTTP requests.
How it connects
Connects Uvicorn with FastAPI, Pydantic, HTTP requests, and model prediction APIs.

Also explained in

Compare how 2 books explain Uvicorn →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Software Engineering for Data Scientists. The section links point to the parts of the book it draws on.