🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Python Intermediate

What is Uvicorn?

A lightning-fast ASGI server for Python, commonly used to serve FastAPI and other async web applications.

Uvicorn is an ASGI (Asynchronous Server Gateway Interface) server implementation using uvloop and httptools for high performance. It serves modern async Python frameworks like FastAPI, Starlette, and Django (async views). Uvicorn supports HTTP/1.1, WebSockets, and can handle thousands of concurrent connections efficiently. In production, it is typically run behind Gunicorn using Uvicorn workers (gunicorn -k uvicorn.workers.UvicornWorker) for process management and graceful restarts. Configuration includes host/port binding, SSL certificates, log levels, and worker count. It replaces WSGI servers like Gunicorn's default worker for async applications.

Related Terms

Python Iterator Protocol
The interface requiring __iter__() and __next__() methods, enabling objects to be used in for loops and other iteration contexts.
Python Coroutine
A function defined with async def that can be paused and resumed, enabling concurrent execution without threads.
Virtual Environment
An isolated Python environment that maintains its own set of packages, independent of the system Python installation.
Decorator
A function that modifies or extends the behavior of another function or class without changing its source code.
Scikit-learn
The most popular Python machine learning library providing simple and efficient tools for data analysis and modeling.
FastAPI
A modern, high-performance Python web framework for building APIs with automatic OpenAPI documentation and type validation.
View All Python Terms →