Skip to the content.

axion User Guide

Welcome to the axion documentation. This guide is a practical manual for building web applications with axion, a lightweight, modular, and fast web framework written in Python using native sockets.

axion supports both server-side rendering (Jinja2 templates) and API development (Pydantic validation, DRF-style serializers), with optional out-of-the-box SQLAlchemy database support.


Table of Contents

Start with Getting Started, then follow the topics that match what you are building.

First steps

Core concepts

Building a full site


Example Application

A fully working example that demonstrates all of the above is available in the example/ directory (SSR homepage, a REST API with nested serializers, middleware in all three styles, and SQLite persistence).

Run it from inside the example directory:

cd example
python main.py

Then open http://127.0.0.1:8000/.


Support