repowiserepowise

Library

litestar-org / litestar

Light, flexible and extensible ASGI framework | Built to scale

★ 8,554stars on GitHubPythonMIT

Repowise maps public repos from their source. Not affiliated with litestar-org. What is Repowise?

github.com/litestar-org/litestarIndexed at 4393e47Up to date with upstreamRefreshes on every push

What is litestar?

Litestar is an ASGI framework for building APIs in Python. It provides data validation, dependency injection, ORM integration, authorization guards, middleware and a plugin API, so applications can be set up without assembling these parts separately. Route handlers are typed, and those type hints drive OpenAPI schema generation as well as validation and parsing of data. To install it, run pip install litestar and follow the steps below. Its code health is 8.8 out of 10 (Excellent), ranked #18. The last commit to litestar was on Nov 14, 2026, and 317 people have contributed.

As of commit 4393e47, indexed Nov 14, 2026. What it is comes from a model reading the README; the rest is measured from the source and git history, not from the maintainer.

For agentslitestar.md

Repo facts: type, license, health, rank, contributors
litestar facts
TypeLibrary
LicenseMIT
Code health8.8 / 10 (Excellent)
Health rank#18
Last commitNov 14, 2026
Contributors317
Bus factor2
Size1,164 files, 82,277 lines

Install litestar

Commands copied from the README

  1. 1Install Litestar from PyPI.
    pip install litestar
  2. 2Run the application with the litestar command.
    litestar run

Releases on GitHub (latest v2.25.0, Oct 18, 2026)

Full install notes on GitHub

Explore litestar

Ask about this code in your agent

This connects Repowise to litestar's code. It does not install litestar. To install litestar, use the install steps.

Useful if you want to change or fork litestar: your agent can ask how it is put together and get answers that cite its files.

Show the connect command (Claude Code, Cursor, Codex, VS Code)

Run it in a terminal, then type /mcp in Claude Code and sign in with Repowise. No key to paste.

Docs
bash
claude mcp add --transport http repowise https://api.repowise.dev/mcp/litestar-org/litestar
Claude Code, Claude, Cursor and VS Code sign you in on first use, free. Codex and Windsurf need an API key: sign in to create one.Sign in for a key

This repo is public, so anyone with a free Repowise account can connect.

Try asking

  • get_overview()
  • get_answer("how is litestar put together?")
  • get_why("why is litestar structured this way?")

Ask about litestar

Answers come from litestar's README and source, with the files they cite. Two free answers a day without an account.

Featured answer

Litestar is an ASGI framework for building APIs in Python that bundles data validation, dependency injection, ORM integration, authorization guards, middleware and a plugin API so these parts do not have to be assembled separately. Route handlers are typed, and those type hints drive OpenAPI schema generation as well as validation and parsing of data. Requests enter a Litestar application object built from route handlers, where litestar/init.py exposes names such as Litestar and get and litestar/app.py is one of the package's entry points. Handler parameters are declared centrally in litestar/params.py, litestar/_kwargs/kwargs_model.py handles the keyword arguments passed to handlers, and litestar/cli/main.py implements the litestar command that runs an application. The repository is organized into layers named API, Middleware, Application, CLI, Config, Data, Utility, Types and Docs & Tooling, with Docs & Tooling and Application holding the most files. To start reading, begin with the Quick Start example, then litestar/app.py and litestar/init.py, and use the tests directory for unit tests and the docs directory for documentation sources.

Files per layer in litestar9 layers.

Basis: Inferred · knowledge graph· as of 4393e47

Want this for your own codebase? Map your repo free

About this page

Get a page like this for your own codebase

Repowise built this map of litestar-org/litestar from its source and git history. It parses every symbol, draws the dependency graph, scores each file's health from complexity, duplication, coverage and churn, finds hotspots and owners in the history, and writes documentation for every module. Your coding agent reads the same index over MCP, so its answers cite real files.

Free for 2 public repos, with a page like this one. No card. See how Repowise works

Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed. Star Repowise on GitHub

litestar-org/litestar FAQ

What is litestar?

Litestar is an ASGI framework for building APIs in Python. It includes data validation, dependency injection, ORM integration and route guards for authorization.

How does litestar work?

Litestar uses type hints on route handlers to validate and parse request data and to generate OpenAPI schemas. Middleware, guards and dependencies run around the handlers.

How do I install litestar?

Run pip install litestar. To also get the CLI and the uvicorn server for running an application, run pip install 'litestar[standard]'. See the install steps

What language is litestar written in?

Litestar is written in Python. Its package is the litestar directory, and it has tests and documentation in separate directories.

How is the litestar code organized?

The main package is litestar/, which includes an app.py entry point and a cli/main.py for the command line. Tests are in the tests directory and documentation sources are in docs.

Who is litestar for?

Litestar is for developers building APIs in Python who want typed route handlers, with type hints used for validation and OpenAPI documentation.

What license does litestar use?

Litestar is released under the MIT license, identified as MIT in its license metadata.

Code health

8.7out of 10Excellent

Hotspots average 5.7, the place fixes pay off most.

On the leaderboards:#1 of 8 Python web frameworks#1 of 64 Python repos

Key features of litestar

  • Supports class-based controllers alongside function-based route handlers.
  • Provides dependency injection with named dependencies that can be defined and overridden at different levels of an application.
  • Generates OpenAPI 3.1 schemas and serves API documentation with Scalar, Redoc, Stoplight Elements and Swagger-UI.
  • Ships middleware for CORS, CSRF, rate limiting, GZip, Brotli and Zstd compression, and client- and server-side sessions.
  • Offers route guards that validate requests at the app, router or controller level before a route handler runs.

How litestar-org/litestar works

Requests enter a Litestar application object, which is built from route handlers as shown in the Quick Start example. litestar/__init__.py exposes the names used in the examples, such as Litestar and get, and litestar/app.py is one of the package's entry points. litestar/params.py is a central file for declaring handler parameters, and litestar/_kwargs/kwargs_model.py is a hotspot module in the _kwargs package that handles the keyword arguments passed to handlers. litestar/cli/main.py implements the litestar command that runs an application. The tests directory holds the unit tests and the docs directory holds the documentation sources.

The codebase has 1,164 files and 7,091 symbols in 8 modules, led by Python, JavaScript and Luau. Code health is 8.7 out of 10, rated excellent.