MCPcopy Index your code
hub / github.com/litestar-org/litestar

github.com/litestar-org/litestar @v2.24.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.24.0 ↗ · + Follow
7,783 symbols 39,384 edges 1,250 files 1,882 documented · 24% 1 cross-repo links updated 6d agov2.24.0 · 2026-06-11★ 8,317225 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Litestar Logo - Light Litestar Logo - Dark

Project Status
CI/CD Latest Release ci Documentation Building
Quality Coverage
Package PyPI - Version PyPI - Support Python Versions Starlite PyPI - Downloads Litestar PyPI - Downloads
Community Reddit Discord Matrix Medium Twitter Blog
Meta Litestar Project types - Mypy License - MIT Litestar Sponsors linting - Ruff code style - Ruff All Contributors

Litestar is a powerful, flexible yet opinionated ASGI framework, focused on building APIs. It offers high-performance data validation, dependency injection, first-class ORM integration, authorization primitives, a rich plugin API, middleware, and much more that's needed to get applications up and running.

Check out the documentation 📚 for a detailed overview of its features!

Additionally, the Litestar fullstack repository can give you a good impression how a fully fledged Litestar application may look.

Table of Contents

Installation

pip install litestar

or to include the CLI and a server (uvicorn) for running your application:

pip install 'litestar[standard]'

Quick Start

```python title="app.py" from litestar import Litestar, get

@get("/") async def hello_world() -> dict[str, str]: """Keeping the tradition alive with hello world.""" return {"hello": "world"}

app = Litestar(route_handlers=[hello_world])


And run it with

```bash
litestar run

Core Features

Example Applications

Pre-built Example Apps

  • litestar-hello-world: A bare-minimum application setup. Great for testing and POC work.
  • litestar-fullstack: A reference application that contains most of the boilerplate required for a web application. It features a Litestar app configured with best practices, SQLAlchemy 2.0 and SAQ, a frontend integrated with Vitejs and Jinja2 templates, Docker, and more. Like all Litestar projects, this application is open to contributions, big and small.

Sponsors

Litestar is an open-source project, and we enjoy the support of our sponsors to help fund the exciting work we do.

A huge thanks to our sponsors:

Scalar.com <a href="https://telemetrysports.com/" title="Telemetry Sports - Changing the way data

Core symbols most depended-on inside this repo

create_test_client
called by 747
litestar/testing/helpers.py
json
called by 423
litestar/connection/request.py
post
called by 236
litestar/testing/request_factory.py
from_annotation
called by 225
litestar/typing.py
get
called by 155
litestar/stores/base.py
encode
called by 115
litestar/security/jwt/token.py
decode
called by 105
litestar/security/jwt/token.py
websocket_connect
called by 98
litestar/testing/client/sync_client.py

Shape

Function 4,077
Method 1,686
Class 1,144
Route 876

Languages

Python100%
TypeScript1%

Modules by API surface

tests/unit/test_dto/test_factory/test_integration.py73 symbols
tests/unit/test_connection/test_request.py73 symbols
tests/unit/test_openapi/test_schema.py71 symbols
tests/unit/test_params.py61 symbols
tests/unit/test_openapi/test_integration.py59 symbols
tests/unit/test_datastructures/test_headers.py55 symbols
tests/e2e/test_routing/test_path_resolution.py55 symbols
litestar/repository/testing/generic_mock_repository.py54 symbols
tests/unit/test_stores.py52 symbols
tests/unit/test_kwargs/test_multipart_data.py52 symbols
tests/unit/test_plugins/test_pydantic/test_openapi.py48 symbols
tests/unit/test_app.py48 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

anyio3 · 1×
httpx0.22 · 1×
litestar-htmx0.4.0 · 1×
msgspec0.18.2 · 1×
multidict6.0.2 · 1×
multipart1.2.0 · 1×
polyfactory2.6.3 · 1×
pyyaml
rich13.0.0 · 1×
rich-click
sniffio1.3.1 · 1×

For agents

$ claude mcp add litestar \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact