$npx skillfedfor your agent

litestar

Litestar - A production-ready, highly performant, extensible ASGI API Framework

Worth itPyPI Software DevelopmentReleased Jun 20262.0M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — litestar-2.24.0-py3-none-any.whl
v2.24.0 · released 2026-06-11 · Python <4.0,>=3.8 · 16 runtime deps: anyio, click, exceptiongroup, httpx, importlib-metadata, importlib-resources, litestar-htmx, msgspec

Yes. Litestar is actively maintained, has low install friction, carries no known vulnerabilities, and is licensed permissively under MIT. It is well-suited for developers building REST APIs who value strict typing, automatic validation, and built-in ORM support. The framework's opinionated design and rich feature set (dependency injection, middleware, OpenAPI generation) reduce boilerplate. Install it if you are building an ASGI API and want these conveniences; skip it if you prefer minimal frameworks or are not building REST APIs.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.8 or later; async/await syntax required for route handlers.
  • Low install friction with a pure-wheel distribution.
  • Active maintenance with recent releases; repository shows 8393 stars and current development activity.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; suitable for most projects without licensing concerns.

last release 2026-06-11 (64 days) · last repo commit 2026-08-13 · 8,393 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,031,207 downloads/mo, #3,351 on PyPI

Verify before relying

pip install litestar

from litestar import Litestar, get

@get("/")
async def hello_world() -> dict[str, str]:
    return {"hello": "world"}

app = Litestar(route_handlers=[hello_world])
  • Performance benchmarks against other ASGI frameworks to validate 'high-performance' claims.
  • Specific SQLAlchemy integration version compatibility and feature set.
  • Whether all 16 runtime dependencies are required or if some are optional extras.
Same gist for agents: .md · .json

What it is and what it does

Litestar is a production-ready ASGI framework designed specifically for building REST APIs. It provides structured tooling for common API concerns: automatic request/response validation using type hints, dependency injection for managing request-scoped and application-scoped resources, middleware support, and automatic OpenAPI 3.1 schema generation. The framework supports both function-based and class-based route handlers, integrates with SQLAlchemy for ORM use, and includes a plugin system for extending serialization and other behaviors.

The framework emphasizes strict typing—it requires type annotations on route handlers and uses them to drive validation, serialization, and documentation. It bundles msgspec for fast data parsing and supports multiple data model formats (dataclasses, TypedDict, Pydantic v1 and v2, attrs). Its 16 runtime dependencies include anyio for async compatibility, httpx for HTTP client support, and rich for CLI output. Installation is straightforward; the base package is pure Python, and an optional 'standard' extra adds uvicorn and the CLI.

Use it for

  • Build REST APIs with automatic request validation and OpenAPI documentation from Python type hints.
  • Create microservices with dependency injection and middleware layering for cross-cutting concerns.
  • Integrate SQLAlchemy models directly into route handlers for ORM-backed endpoints.
  • Generate interactive API documentation (Swagger, Redoc, RapiDoc, Scalar, Stoplight Elements) automatically.
  • Develop async-first applications using class-based controllers for organized route grouping.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Litestar is actively maintained, has low install friction, carries no known vulnerabilities, and is licensed permissively under MIT. It is well-suited for developers building REST APIs who value strict typing, automatic validation, and built-in ORM support. The framework's opinionated design and rich feature set (dependency injection, middleware, OpenAPI generation) reduce boilerplate. Install it if you are building an ASGI API and want these conveniences; skip it if you prefer minimal frameworks or are not building REST APIs.

Install

litestar on PyPI

Before you install

Low install friction with a pure-wheel distribution. Active maintenance with recent releases; repository shows 8393 stars and current development activity.

Requires Python 3.8 or later; async/await syntax required for route handlers.

License in practice

MIT license permits commercial and private use with minimal restrictions; suitable for most projects without licensing concerns.

Quickstart

pip install litestar

from litestar import Litestar, get

@get("/")
async def hello_world() -> dict[str, str]:
    return {"hello": "world"}

app = Litestar(route_handlers=[hello_world])

Verify before relying

  • Performance benchmarks against other ASGI frameworks to validate 'high-performance' claims.
  • Specific SQLAlchemy integration version compatibility and feature set.
  • Whether all 16 runtime dependencies are required or if some are optional extras.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release <4.0,>=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
16 packages
anyioclickexceptiongrouphttpximportlib-metadataimportlib-resourceslitestar-htmxmsgspecmultidictmultipartpolyfactorypyyamlrich-clickrichsniffiotyping-extensions
MaintenanceActively maintained 64 days since the last release
Last repo commit
First released
Downloads2,031,207 / month, #3,351 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: InternetTopic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: HTTP ServersTopic :: Software DevelopmentTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Application FrameworksTopic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Evidence: litestar-2.24.0-py3-none-any.whl

Tags

Capabilities
asgi api frameworkrest api pythonasync web frameworkdata validation frameworkdependency injection asgiopenapi schema generationorm integration framework
Topics
rest-apiasync-frameworkopenapi
PyPI keywords
apiasgilitestarreststarlite

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “dependency injection asgi”

  • litestarLitestar is an ASGI framework for building REST APIs with built-in…
  • asgi-lifespanProgrammatically trigger ASGI application startup and shutdown events…
  • allukaAlluka is a type-based dependency injection framework that uses…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also advanced-alchemy · litestar-htmx · flask-openapi3 · piccolo-api · APIFlask · quart-schema · flask-openapi3-scalar · flask-openapi3-swagger