# litestar-org/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.

Source: https://github.com/litestar-org/litestar
Indexed: commit 4393e47 on 2026-11-14 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: Library
- Language: Python
- Stars: 8,556 at index time
- License: MIT
- Code health: 8.8/10, Excellent
- Last commit: 2026-11-14
- Contributors: 317

## Install

From the README: https://github.com/litestar-org/litestar#installation

Install Litestar from PyPI.
    pip install litestar

Run the application with the litestar command.
    litestar run

## How it 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.

- docs/examples/signature_namespace/app.py: entry point
- litestar/__init__.py: entry point
- litestar/__main__.py: entry point
- litestar/app.py: entry point
- litestar/cli/main.py: entry point
Modules: tests, docs, litestar, test_apps, tools, .github, .devcontainer, root. 1,164 files, 82,277 lines, 7,091 symbols.

## Code health

- Score: 8.8/10 (Excellent)
- Trend: 8.8 on 2026-11-13, 8.8 on 2026-11-13, 8.8 on 2026-11-14
- Rank: #18
- Hotspots: tests/unit/test_openapi/test_schema.py, litestar/_kwargs/kwargs_model.py, tests/unit/test_kwargs/test_reserved_kwargs_injection.py, litestar/params.py, tests/unit/test_openapi/test_parameters.py
- Lowest file: litestar/app.py
- Dead code: 18 findings

## Maintenance

- Last commit 2026-11-14, first commit 2021-12-06, 3,406 commits
- 317 contributors, bus factor 2

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/litestar-org/litestar/security

## More

- Page: https://repowise.dev/repo/litestar-org/litestar
- Ask this codebase: https://repowise.dev/repo/litestar-org/litestar/chat
- Docs: https://repowise.dev/repo/litestar-org/litestar/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/litestar-org/litestar
