Meta tags:
description= Build blazing fast APIs with automatic documentation, dependency injection, and type safety. Litestar makes complex web development simple and intuitive.;
Headings (most frequently used words):
litestar, with, the, modern, to, apis, pythonasgi, frameworkbuilt, scale, focused, on, development, experience, everything, you, need, build, extend, plugins, unlock, synergy, seamless, integrations, work, any, python, data, model, developer, choice, for, simple, and, powerful, sponsors, advanced, alchemy, asyncpg, autowire, email, granian, htmx, mcp, oracledb, queues, saq, vite, sqlspec, scalar, rapidoc, redoc, spotlight, elements, swagger, ui, yaml, pydantic, dataclasses, attrs, typeddict, msgspec, framework, ecosystem, community,
Text of the page (most frequently used words):
#litestar (61), and (37), for (22), the (19), with (19), data (17), integration (12), copy (12), command (12), install (12), import (12), python (9), you (9), apis (8), from (8), validation (8), your (8), plugin (7), app (7), message (7), plugins (6), use (6), press (6), uvicorn (6), main (6), str (6), documentation (5), modern (5), need (5), dataclasses (5), explore (5), email (5), datetime (5), github (4), community (4), framework (4), asgi (4), that (4), open (4), based (4), serialization (4), support (4), all (4), authentication (4), configuration (4), integrate (4), openapi (4), then (4), user (4), pyproject (4), toml (4), sponsor (3), ecosystem (3), api (3), fast (3), scale (3), scalar (3), source (3), start (3), now (3), build (3), powerful (3), json (3), type (3), built (3), out (3), box (3), swagger (3), elements (3), redoc (3), integrations (3), vite (3), saq (3), queues (3), mcp (3), htmx (3), granian (3), asyncpg (3), websockets (3), caching (3), minimal (3), dependency (3), injection (3), application (3), code (3), schema (3), can (3), node (3), run (3), __main__ (3), __name__ (3), route_handlers (3), return (3), def (3), async (3), echo_handler (3), dict (3), controllers (3), hello (3), get (3), under (2), mit (2), license (2), discord (2), blog (2), about (2), building (2), contributors (2), powered (2), productivity (2), performance (2), what (2), library (2), msgspec (2), hints (2), key (2), value (2), types (2), popular (2), pydantic (2), libraries (2), needs (2), any (2), model (2), yaml (2), rapidoc (2), seamless (2), tools (2), sqlspec (2), task (2), oracledb (2), autowire (2), route (2), advanced (2), alchemy (2), ready (2), sqlalchemy (2), official (2), development (2), common (2), extend (2), easy (2), level (2), automatic (2), response (2), class (2), models (2), reducing (2), orm (2), stores (2), seamlessly (2), more (2), middlewares (2), schemas (2), define (2), enter (2), space (2), select (2), delete (2), remove (2), escape (2), cancel (2), arrow (2), keys (2), move (2), around (2), system (2), batteries (2), included (2), create_user (2), password (2), name (2), userresponsedto (2), post (2), timestamp (2), websocket (2), dataclass (2), echo (2), websocket_listener (2), main_ws_listener (2), router (2), mycontroller (2), 2026, released, reference, changelog, telemetry, sports, become, made, possible, will, remain, free, sponsors, members, 299, contributing, 100, our, passionate, stars, monthly, downloads, was, born, developers, boost, platform, began, starlette, solution, solid, frameworks, developer, choice, simple, messagepack, dictionaries, specific, responses, typeddict, classes, without, boilerplate, mature, battle, tested, excellent, attrs, full, most, supports, modeling, choose, favorite, mix, match, work, spotlight, other, platforms, enhancing, workflow, efficiency, unlock, synergy, 103, 10k, sql, experiments, 854, workers, schedules, backend, oracle, context, protocol, 348, package, listener, discovery, 811, 702, concoctions, has, rich, module, both, driven, this, accelerates, providing, solutions, reading, docs, session, jwt, utilities, disposal, layer, ease, authorization, featuring, high, low, overhead, speed, times, layers, aides, decoupling, reduces, repetition, first, let, directly, duplication, interfaces, various, third, party, extensions, handle, rate, limiting, cors, csrf, compression, logging, many, tasks, interactively, through, stoplight, interactive, automatically, generated, help, document, frontend, via, typescript, generation, standard, such, like, attr, own, leverage, power, how, should, validated, parsed, serialized, parsing, provides, required, everything, edge, functionality, reusable, components, naturally, architecture, layered, allows, modularization, override, settings, controller, maximum, flexibility, hierarchical, thoughtful, defaults, clear, conventions, guide, toward, best, practices, decision, fatigue, ensuring, consistent, maintainable, strict, opinionated, design, comprehensive, optional, features, available, middleware, when, focused, experience, true, debug, return_dto, users, send, back, serialize, returned, call, passing, parameter, parse, its, content, every, incoming, accept, connections, main_ws_stream, router_controller, class_controller, world, dtos, routing, pip, view, started, safety, lot, makes, designing, complex, web, apps, simpler, new, website,
Text of the page (random words):
litestar the modern python asgi framework v2 24 documentation plugins blog about uv litestar on github litestar on discord new website v3 the modern python asgi framework built to scale fast apis with automatic openapi documentation dependency injection type safety and a lot of batteries included litestar makes designing complex web apps simpler get started view on github pip uv minimal routing websockets dtos main py pyproject toml main py import uvicorn from litestar import litestar get get async def hello dict str str return message hello world app litestar route_handlers hello if __name__ __main__ uvicorn run app controllers main py pyproject toml main py import uvicorn from litestar import litestar from controllers class_controller import mycontroller from controllers router_controller import router app litestar route_handlers mycontroller router if __name__ __main__ uvicorn run app main_ws_listener py main_ws_stream py pyproject toml main_ws_listener py import dataclasses import datetime from litestar import litestar websocket_listener dataclasses dataclass class message data dict str str timestamp datetime datetime websocket_listener echo async def echo_handler data dict str str message accept websocket connections on echo and then for every incoming message parse its content as json call echo_handler passing the data to the data parameter serialize the returned message dataclass to json send a websocket message back return message data data timestamp datetime datetime now app litestar echo_handler main py pyproject toml schema py main py import uvicorn from litestar import litestar post from schema import user userresponsedto post users return_dto userresponsedto async def create_user data user user return user name data name email data email password data password app litestar route_handlers create_user debug true if __name__ __main__ uvicorn run app focused on development experience modern batteries included comprehensive optional features available out of the box authentication validation orm integration caching middleware and more use what you need when you need it strict opinionated design thoughtful defaults and clear conventions guide you toward best practices reducing decision fatigue and ensuring consistent maintainable code hierarchical configuration layered configuration system allows easy modularization override settings at any level application controller or route for maximum flexibility powerful plugin system extend functionality seamlessly with official and community plugins build reusable components that integrate naturally with litestar s architecture explore documentation press enter or space to select a node you can then use the arrow keys to move the node around you can then use the arrow keys to move the node around press delete to remove it and press escape to cancel press enter or space to select an edge you can then press delete to remove it or press escape to cancel everything you need to build modern apis litestar provides all the tools you need out of the box with minimal configuration required data validation and parsing leverage the power of type hints to define how data should be validated parsed and serialized open ecosystem define schemas and models for validation with standard types such as dataclasses libraries like pydantic msgspec attr or integrate your own openapi automatically generated openapi schemas help to document apis and integrate with the frontend via typescript schema generation interactive api documentation interactively explore your apis through swagger redoc or stoplight elements powered by openapi middlewares handle rate limiting cors csrf compression logging and many more common tasks with litestar s built in middlewares data stores interfaces for various key value stores that seamlessly integrate with your application and third party extensions orm integration first class sqlalchemy support let s you use your models for validation and serialization directly reducing code duplication dependency injection powerful dependency injection on all application layers aides in code decoupling and reduces repetition caching response caching with minimal configuration and overhead to speed up response times websockets easy to use websockets integration featuring high and low level apis and support for automatic data validation and serialization authentication and authorization session and jwt based authentication and utilities at your disposal to start building your authentication layer with ease explore litestar now start reading docs extend litestar with plugins litestar has a rich module ecosystem with both official and community driven plugins this accelerates development by providing ready to use solutions for common needs explore all plugins advanced alchemy ready to go sqlalchemy concoctions 702 9k 811 copy command to install advanced alchemy litestar asyncpg asyncpg plugin for litestar 2 1k 15 copy command to install litestar asyncpg litestar autowire package based route listener and task discovery for litestar 348 3 copy command to install litestar autowire litestar email email plugin for litestar 2 5k 16 copy command to install litestar email litestar granian granian plugin for litestar 16 5k 44 copy command to install litestar granian litestar htmx htmx integration for litestar 1 7m 12 copy command to install litestar htmx litestar mcp litestar plugin for model context protocol mcp integration 6k 13 copy command to install litestar mcp litestar oracledb oracle db plugin for litestar 15 4 copy command to install litestar oracledb litestar queues task queues workers schedules and backend integrations for litestar 854 10 copy command to install litestar queues litestar saq litestar integration for saq 21 7k 34 copy command to install litestar saq litestar vite vite plugin for litestar 16 9k 36 copy command to install litestar vite sqlspec sql experiments in python 10k 103 copy command to install sqlspec unlock synergy seamless integrations with litestar explore litestar seamless integrations with other tools and platforms enhancing productivity and workflow efficiency scalar scalar integration rapidoc rapidoc integration redoc redoc integration spotlight elements elements integration swagger ui swagger ui integration yaml yaml integration work with any python data model litestar supports all popular python data modeling libraries out of the box choose your favorite or mix and match based on your needs pydantic the most popular data validation library for python dataclasses python s built in dataclasses with full support for serialization and validation attrs python classes without boilerplate mature and battle tested with excellent performance typeddict type hints for dictionaries with specific key value types and api responses msgspec fast serialization and validation library with json and messagepack support the developer s choice for simple and powerful apis litestar was born from developers need to boost productivity and platform performance what began as a starlette based solution is now a solid asgi frameworks to build apis that scale 1 7m monthly downloads 8 5k github stars open source litestar is 100 powered by our passionate open source community start contributing 299 contributors 2 1k members sponsors litestar is made possible by contributors and sponsor it will remain free and open source under the mit license become a sponsor scalar telemetry sports a modern fast python asgi framework for building apis that scale framework documentation changelog api reference ecosystem plugins community about blog sponsor us litestar on github litestar on discord 2026 litestar released under the mit license
|