litestar

Production-ready, Light, Flexible and Extensible ASGI API framework | Effortlessly Build Performant APIs

https://github.com/litestar-org/litestar

Science Score: 54.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    3 of 241 committers (1.2%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (4.6%) to scientific vocabulary

Keywords

api asgi asyncio hacktoberfest litestar litestar-api litestar-framework msgspec openapi pydantic python rapidoc redoc rest starlite starlite-api swagger

Keywords from Contributors

json-schema hints parsing python39 python313 python310 python311 python312 binding openapi3
Last synced: 6 months ago · JSON representation ·

Repository

Production-ready, Light, Flexible and Extensible ASGI API framework | Effortlessly Build Performant APIs

Basic Info
  • Host: GitHub
  • Owner: litestar-org
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage: https://litestar.dev/
  • Size: 145 MB
Statistics
  • Stars: 7,363
  • Watchers: 47
  • Forks: 455
  • Open Issues: 257
  • Releases: 0
Topics
api asgi asyncio hacktoberfest litestar litestar-api litestar-framework msgspec openapi pydantic python rapidoc redoc rest starlite starlite-api swagger
Created about 4 years ago · Last pushed 6 months ago
Metadata Files
Readme Contributing License Citation Codeowners

README.md

Litestar Logo - Light Litestar Logo - Dark

| Project | | Status | |-----------|:----|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | CI/CD | | [![Latest Release](https://github.com/litestar-org/litestar/actions/workflows/publish.yml/badge.svg)](https://github.com/litestar-org/litestar/actions/workflows/publish.yml) [![ci](https://github.com/litestar-org/litestar/actions/workflows/ci.yml/badge.svg)](https://github.com/litestar-org/litestar/actions/workflows/ci.yml) [![Documentation Building](https://github.com/litestar-org/litestar/actions/workflows/docs.yml/badge.svg?branch=main)](https://github.com/litestar-org/litestar/actions/workflows/docs.yml) | | Quality | | [![Coverage](https://codecov.io/github/litestar-org/litestar/graph/badge.svg?token=vKez4Pycrc)](https://codecov.io/github/litestar-org/litestar) | | Package | | [![PyPI - Version](https://img.shields.io/pypi/v/litestar?labelColor=202235&color=edb641&logo=python&logoColor=edb641)](https://badge.fury.io/py/litestar) ![PyPI - Support Python Versions](https://img.shields.io/pypi/pyversions/litestar?labelColor=202235&color=edb641&logo=python&logoColor=edb641) ![Starlite PyPI - Downloads](https://img.shields.io/pypi/dm/starlite?logo=python&label=starlite%20downloads&labelColor=202235&color=edb641&logoColor=edb641) ![Litestar PyPI - Downloads](https://img.shields.io/pypi/dm/litestar?logo=python&label=litestar%20downloads&labelColor=202235&color=edb641&logoColor=edb641) | | Community | | [![Reddit](https://img.shields.io/reddit/subreddit-subscribers/litestarapi?label=r%2FLitestar&logo=reddit&labelColor=202235&color=edb641&logoColor=edb641)](https://reddit.com/r/litestarapi) [![Discord](https://img.shields.io/discord/919193495116337154?labelColor=202235&color=edb641&label=chat%20on%20discord&logo=discord&logoColor=edb641)](https://discord.gg/litestar) [![Matrix](https://img.shields.io/badge/chat%20on%20Matrix-bridged-202235?labelColor=202235&color=edb641&logo=matrix&logoColor=edb641)](https://matrix.to/#/#litestar:matrix.org) [![Medium](https://img.shields.io/badge/Medium-202235?labelColor=202235&color=edb641&logo=medium&logoColor=edb641)](https://blog.litestar.dev) [![Twitter](https://img.shields.io/twitter/follow/LitestarAPI?labelColor=202235&color=edb641&logo=twitter&logoColor=edb641&style=flat)](https://twitter.com/LitestarAPI) [![Blog](https://img.shields.io/badge/Blog-litestar.dev-202235?logo=blogger&labelColor=202235&color=edb641&logoColor=edb641)](https://blog.litestar.dev) | | Meta | | [![Litestar Project](https://img.shields.io/badge/Litestar%20Org-%E2%AD%90%20Litestar-202235.svg?logo=python&labelColor=202235&color=edb641&logoColor=edb641)](https://github.com/litestar-org/litestar) [![types - Mypy](https://img.shields.io/badge/types-Mypy-202235.svg?logo=python&labelColor=202235&color=edb641&logoColor=edb641)](https://github.com/python/mypy) [![License - MIT](https://img.shields.io/badge/license-MIT-202235.svg?logo=python&labelColor=202235&color=edb641&logoColor=edb641)](https://spdx.org/licenses/) [![Litestar Sponsors](https://img.shields.io/badge/Sponsor-%E2%9D%A4-%23edb641.svg?&logo=github&logoColor=edb641&labelColor=202235)](https://github.com/sponsors/litestar-org) [![linting - Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json&labelColor=202235)](https://github.com/astral-sh/ruff) [![code style - Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/format.json&labelColor=202235)](https://github.com/psf/black) [![All Contributors](https://img.shields.io/github/all-contributors/litestar-org/litestar?labelColor=202235&color=edb641&logoColor=edb641)](#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](#installation) - [Quick Start](#quick-start) - [Core Features](#core-features) - [Example Applications](#example-applications) - [Features](#features) - [Class-based Controllers](#class-based-controllers) - [Data Parsing, Type Hints, and Msgspec](#data-parsing-type-hints-and-msgspec) - [Plugin System, ORM support, and DTOs](#plugin-system-orm-support-and-dtos) - [OpenAPI](#openapi) - [Dependency Injection](#dependency-injection) - [Middleware](#middleware) - [Route Guards](#route-guards) - [Request Life Cycle Hooks](#request-life-cycle-hooks) - [Performance](#performance) - [Contributing](#contributing)

Installation

shell pip install litestar or to include the CLI and a server (uvicorn) for running your application: shell 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(routehandlers=[helloworld]) ```

And run it with

bash litestar run

Core Features

Example Applications

Pre-built Example Apps - [litestar-hello-world](https://github.com/litestar-org/litestar-hello-world): A bare-minimum application setup. Great for testing and POC work. - [litestar-fullstack](https://github.com/litestar-org/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 Telemetry Sports

Check out our sponsors in the docs

If you would like to support the work that we do please consider becoming a sponsor via Polar.sh (preferred), GitHub or Open Collective.

Also, exclusively with Polar, you can engage in pledge-based sponsorships.

Features

Class-based Controllers

While supporting function-based route handlers, Litestar also supports and promotes python OOP using class based controllers:

Example for class-based controllers ```python title="my_app/controllers/user.py" from typing import List, Optional from datetime import datetime from litestar import Controller, get, post, put, patch, delete from litestar.dto import DTOData from pydantic import UUID4 from my_app.models import User, PartialUserDTO class UserController(Controller): path = "/users" @post() async def create_user(self, data: User) -> User: ... @get() async def list_users(self) -> List[User]: ... @get(path="/{date:int}") async def list_new_users(self, date: datetime) -> List[User]: ... @patch(path="/{user_id:uuid}", dto=PartialUserDTO) async def partial_update_user( self, user_id: UUID4, data: DTOData[PartialUserDTO] ) -> User: ... @put(path="/{user_id:uuid}") async def update_user(self, user_id: UUID4, data: User) -> User: ... @get(path="/{user_name:str}") async def get_user_by_name(self, user_name: str) -> Optional[User]: ... @get(path="/{user_id:uuid}") async def get_user(self, user_id: UUID4) -> User: ... @delete(path="/{user_id:uuid}") async def delete_user(self, user_id: UUID4) -> None: ... ```

Data Parsing, Type Hints, and Msgspec

Litestar is rigorously typed, and it enforces typing. For example, if you forget to type a return value for a route handler, an exception will be raised. The reason for this is that Litestar uses typing data to generate OpenAPI specs, as well as to validate and parse data. Thus, typing is essential to the framework.

Furthermore, Litestar allows extending its support using plugins.

Plugin System, ORM support, and DTOs

Litestar has a plugin system that allows the user to extend serialization/deserialization, OpenAPI generation, and other features.

It ships with a builtin plugin for SQL Alchemy, which allows the user to use SQLAlchemy declarative classes "natively" i.e., as type parameters that will be serialized/deserialized and to return them as values from route handlers.

Litestar also supports the programmatic creation of DTOs with a DTOFactory class, which also supports the use of plugins.

OpenAPI

Litestar has custom logic to generate OpenAPI 3.1.0 schema, include optional generation of examples using the polyfactory library.

ReDoc, Swagger-UI and Stoplight Elements API Documentation

Litestar serves the documentation from the generated OpenAPI schema with:

All these are available and enabled by default.

Dependency Injection

Litestar has a simple but powerful DI system inspired by pytest. You can define named dependencies - sync or async - at different levels of the application, and then selective use or overwrite them.

Example for DI ```python from litestar import Litestar, get from litestar.di import Provide async def my_dependency() -> str: ... @get("/") async def index(injected: str) -> str: return injected app = Litestar([index], dependencies={"injected": Provide(my_dependency)}) ```

Middleware

Litestar supports typical ASGI middleware and ships with middlewares to handle things such as

  • CORS
  • CSRF
  • Rate limiting
  • GZip and Brotli compression
  • Client- and server-side sessions

Route Guards

Litestar has an authorization mechanism called guards, which allows the user to define guard functions at different level of the application (app, router, controller etc.) and validate the request before hitting the route handler function.

Example for route guards ```python from litestar import Litestar, get from litestar.connection import ASGIConnection from litestar.handlers.base import BaseRouteHandler from litestar.exceptions import NotAuthorizedException async def is_authorized(connection: ASGIConnection, handler: BaseRouteHandler) -> None: # validate authorization # if not authorized, raise NotAuthorizedException raise NotAuthorizedException() @get("/", guards=[is_authorized]) async def index() -> None: ... app = Litestar([index]) ```

Request Life Cycle Hooks

Litestar supports request life cycle hooks, similarly to Flask - i.e. before_request and after_request

Performance

Litestar is fast. It is on par with, or significantly faster than comparable ASGI frameworks.

You can see and run the benchmarks here, or read more about it here in our documentation.

Contributing

Litestar is open to contributions big and small. You can always join our discord server or join our Matrix space to discuss contributions and project maintenance. For guidelines on how to contribute, please see the contribution guide.

Contributors ✨

Thanks goes to these wonderful people: Emoji Key
Na'aman Hirschfeld
Na'aman Hirschfeld

🚧 💻 📖 ⚠️ 🤔 💡 🐛
Peter Schutt
Peter Schutt

🚧 💻 📖 ⚠️ 🤔 💡 🐛
Ashwin Vinod
Ashwin Vinod

💻 📖
Damian
Damian

📖
Vincent Sarago
Vincent Sarago

💻
Jonas Krüger Svensson
Jonas Krüger Svensson

📦
Sondre Lillebø Gundersen
Sondre Lillebø Gundersen

📦
Lev
Lev

💻 🤔
Tim Wedde
Tim Wedde

💻
Tory Clasen
Tory Clasen

💻
Arseny Boykov
Arseny Boykov

💻 🤔
Jacob Rodgers
Jacob Rodgers

💡
Dane Solberg
Dane Solberg

💻
madlad33
madlad33

💻
Matthew Aylward
Matthew Aylward

💻
Jan Klima
Jan Klima

💻
C2D
C2D

⚠️
to-ph
to-ph

💻
imbev
imbev

📖
cătălin
cătălin

💻
Seon82
Seon82

📖
Slava
Slava

💻
Harry
Harry

💻 📖
Cody Fincher
Cody Fincher

🚧 💻 📖 ⚠️ 🤔 💡 🐛
Christian Clauss
Christian Clauss

📖
josepdaniel
josepdaniel

💻
devtud
devtud

🐛
Nicholas Ramos
Nicholas Ramos

💻
seladb
seladb

📖 💻
Simon Wienhöfer
Simon Wienhöfer

💻
MobiusXS
MobiusXS

💻
Aidan Simard
Aidan Simard

📖
wweber
wweber

💻
Samuel Colvin
Samuel Colvin

💻
Mateusz Mikołajczyk
Mateusz Mikołajczyk

💻
Alex
Alex

💻
Odiseo
Odiseo

📖
Javier  Pinilla
Javier Pinilla

💻
Chaoying
Chaoying

📖
infohash
infohash

💻
John Ingles
John Ingles

💻
Eugene
Eugene

⚠️ 💻
Jon Daly
Jon Daly

📖 💻
Harshal Laheri
Harshal Laheri

💻 📖
Téva KRIEF
Téva KRIEF

💻
Konstantin Mikhailov
Konstantin Mikhailov

🚧 💻 📖 ⚠️ 🤔 💡 🐛
Mitchell Henry
Mitchell Henry

📖
chbndrhnns
chbndrhnns

📖
nielsvanhooy
nielsvanhooy

💻 🐛 ⚠️
provinzkraut
provinzkraut

🚧 💻 📖 ⚠️ 🤔 💡 🐛 🎨
Joshua Bronson
Joshua Bronson

📖
Roman Reznikov
Roman Reznikov

📖
mookrs
mookrs

📖
Mike DePalatis
Mike DePalatis

📖
Carlos Alberto Pérez-Molano
Carlos Alberto Pérez-Molano

📖
ThinksFast
ThinksFast

⚠️ 📖
Christopher Krause
Christopher Krause

💻
Kyle Smith
Kyle Smith

💻 📖 🐛
Scott Bradley
Scott Bradley

🐛
Srikanth Chekuri
Srikanth Chekuri

⚠️ 📖
Michael Bosch
Michael Bosch

📖
sssssss340
sssssss340

🐛
ste-pool
ste-pool

💻 🚇
Alc-Alc
Alc-Alc

📖 💻 ⚠️ 🚇
asomethings
asomethings

💻
Garry Bullock
Garry Bullock

📖
Niclas Haderer
Niclas Haderer

💻
Diego Alvarez
Diego Alvarez

📖 💻 ⚠️
Jason Nance
Jason Nance

📖
Igor Kapadze
Igor Kapadze

📖
Somraj Saha
Somraj Saha

📖
Magnús Ágúst Skúlason
Magnús Ágúst Skúlason

💻 📖
Alessio Parma
Alessio Parma

📖
Peter Brunner
Peter Brunner

💻
Jacob Coffee
Jacob Coffee

📖 💻 ⚠️ 🚇 🤔 🚧 💼 🎨
Gamazic
Gamazic

💻
Kareem Mahlees
Kareem Mahlees

💻
Abdulhaq Emhemmed
Abdulhaq Emhemmed

💻 📖
Jenish
Jenish

💻 📖
chris-telemetry
chris-telemetry

💻
Ward
Ward

🐛
Stephan Fitzpatrick
Stephan Fitzpatrick

🐛
Eric Kennedy
Eric Kennedy

📖
wassaf shahzad
wassaf shahzad

💻
Nils Olsson
Nils Olsson

💻 🐛
Riley Chase
Riley Chase

💻
arl
arl

🚧
Antoine van der Horst
Antoine van der Horst

📖
Nick Groenen
Nick Groenen

📖
Giorgio Vilardo
Giorgio Vilardo

📖
Nicholas Bollweg
Nicholas Bollweg

💻
Tomas Jonsson
Tomas Jonsson

⚠️ 💻
Khiem Doan
Khiem Doan

📖
kedod
kedod

📖 💻 ⚠️
sonpro1296
sonpro1296

💻 ⚠️ 🚇 📖
Patrick Armengol
Patrick Armengol

📖
Sander
Sander

📖
疯人院主任
疯人院主任

📖
aviral-nayya
aviral-nayya

💻
whiskeyriver
whiskeyriver

💻
Phyo Arkar Lwin
Phyo Arkar Lwin

💻
MatthewNewland
MatthewNewland

🐛 💻 ⚠️
Tom Kuo
Tom Kuo

🐛
LeckerenSirupwaffeln
LeckerenSirupwaffeln

🐛
Daniel González Fernández
Daniel González Fernández

📖
01EK98
01EK98

📖
Sarbo Roy
Sarbo Roy

💻
Ryan Seeley
Ryan Seeley

💻
Felix
Felix

📖 🐛
George Sakkis
George Sakkis

💻
Huba Tuba
Huba Tuba

📖 💻 ⚠️
Stefane Fermigier
Stefane Fermigier

📖
r4ge
r4ge

💻 📖
Jay
Jay

💻
sinisaos
sinisaos

📖
Tharuka Devendra
Tharuka Devendra

💻
euri10
euri10

💻 📖 🐛
Shubham
Shubham

📖
Erik Hasse
Erik Hasse

🐛 💻
Nikita Sobolev
Nikita Sobolev

🚇 💻
Nguyễn Hoàng Đức
Nguyễn Hoàng Đức

🐛
RavanaBhrama
RavanaBhrama

📖
Marcel Johannesmann
Marcel Johannesmann

📖
Matthew
Matthew

📖
Mattwmaster58
Mattwmaster58

🐛 💻 ⚠️
Manuel Sanchez Pinar
Manuel Sanchez Pinar

📖
Juan Riveros
Juan Riveros

📖
David Brochart
David Brochart

📖
Sean Donoghue
Sean Donoghue

📖
P.C. Shyamshankar
P.C. Shyamshankar

🐛 💻 ⚠️
William Evonosky
William Evonosky

💻
geeshta
geeshta

📖 💻 🐛
Robert Rosca
Robert Rosca

📖
DICE_Lab
DICE_Lab

💻
Luis San Pablo
Luis San Pablo

💻 ⚠️ 📖
Pastukhov Nikita
Pastukhov Nikita

📖
James O'Claire
James O'Claire

📖
Pete
Pete

📖
Alexandre Richonnier
Alexandre Richonnier

💻 📖
betaboon
betaboon

💻
Dennis Brakhane
Dennis Brakhane

💻 🐛
Pragy Agarwal
Pragy Agarwal

📖
Piotr Dybowski
Piotr Dybowski

📖
Konrad Szczurek
Konrad Szczurek

📖 ⚠️
Orell Garten
Orell Garten

💻 📖 ⚠️
Julien
Julien

📖
Leejay Hsu
Leejay Hsu

🚧 🚇 📖
Michiel W. Beijen
Michiel W. Beijen

📖
L. Bao
L. Bao

📖
Jarred Glaser
Jarred Glaser

📖
Hunter Boyd
Hunter Boyd

📖
Cesar Giulietti
Cesar Giulietti

📖
Marcus Lim
Marcus Lim

📖
Henry Zhou
Henry Zhou

🐛 💻
William Stam
William Stam

📖
andrew do
andrew do

💻 ⚠️ 📖
Boseong Choi
Boseong Choi

💻 ⚠️
Kim Minki
Kim Minki

💻 📖
Jeongseop Lim
Jeongseop Lim

📖
FergusMok
FergusMok

📖 💻 ⚠️
Manu Singhal
Manu Singhal

📖
Jerry Wu
Jerry Wu

📖
horo
horo

🐛
Ross Titmarsh
Ross Titmarsh

💻
Mike Korneev
Mike Korneev

📖
Patrick Neise
Patrick Neise

💻
Jean Arhancet
Jean Arhancet

🐛
Leo Alekseyev
Leo Alekseyev

💻
aranvir
aranvir

📖 💻 ⚠️
bunny-therapist
bunny-therapist

💻
Ben Luo
Ben Luo

📖
Hugo van Kemenade
Hugo van Kemenade

📖
Michael Gerbig
Michael Gerbig

📖
CrisOG
CrisOG

🐛 💻 ⚠️
harryle
harryle

💻 ⚠️
James Bennett
James Bennett

🐛
sherbang
sherbang

📖
Carl Smedstad
Carl Smedstad

⚠️
Taein Min
Taein Min

📖
Stanislav Lyu.
Stanislav Lyu.

🐛
Tibor Reiss
Tibor Reiss

⚠️ 📖 💻
Alex
Alex

🐛 💻
Joren Six
Joren Six

📖
jderrien
jderrien

📖
PossiblePanda
PossiblePanda

📖
evstrat
evstrat

🚇
Ikko Eltociear Ashimine
Ikko Eltociear Ashimine

📖
Taimur Ibrahim
Taimur Ibrahim

📖
l-armstrong
l-armstrong

📖
Anuranjan Srivastava
Anuranjan Srivastava

💻
Simon Joseph
Simon Joseph

📖
Abel Kidanemariam
Abel Kidanemariam

💻 ⚠️ 📖
Trim21
Trim21

💻 ⚠️
Agustin Arce
Agustin Arce

📖
Farhan Ali Raza
Farhan Ali Raza

📖
Fabian
Fabian

💻
Mohammed Babelly
Mohammed Babelly

💻
Charles Duffy
Charles Duffy

💻
Evgeny Demchenko
Evgeny Demchenko

📖 ⚠️
Olzhas Arystanov
Olzhas Arystanov

🐛 📖
Vikash
Vikash

💻
Jordan Russell
Jordan Russell

📖 ⚠️ 💻
Steven Loria
Steven Loria

📖
oek1ng
oek1ng

💻
Vladislav
Vladislav

📖
Edgars
Edgars

📖
Jianqi Pan
Jianqi Pan

💻
PokkaKiyo
PokkaKiyo

⚠️
Sergei Aleshin
Sergei Aleshin

💻
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

Owner

  • Name: Litestar
  • Login: litestar-org
  • Kind: organization
  • Email: hello@litestar.dev
  • Location: Internet

Effortlessly Build Performant APIs

Citation (CITATION.cff)

cff-version: 1.2.0
title: Litestar
message: 'If you use this software, please cite it as below.'
type: software
authors:
  - given-names: Janek Nouvertné
  - given-names: Peter Schutt
  - given-names: Cody Fincher
  - given-names: Visakh Unnikrishnan
  - given-names: Jacob Coffee
  - given-names: Na'aman Hirschfeld
repository-code: 'https://github.com/litestar-org/litestar'
url: 'https://docs.litestar.dev/latest/'
abstract: >-
  Litestar is a powerful, flexible, and highly performant Python web framework
  for building modern APIs and applications. With an emphasis on developer
  experience and performance, Litestar provides a rich set of features out of the
  box, including automatic API documentation, data validation and serialization,
  ORM integration, dependency injection, caching, websockets, and more.


  Litestar's layered architecture and open ecosystem enable seamless integration
  with popular libraries like Pydantic, SQLAlchemy, and msgspec. It offers both
  asynchronous and synchronous execution models without performance penalties.


  With Litestar, you can effortlessly build and deploy production-ready APIs and
  web applications, leveraging features like interactive API documentation,
  middlewares for common tasks, session and JWT-based authentication, and strict
  runtime validation for enhanced safety. Experience the perfect blend of ease
  of use, flexibility and performance with Litestar.
keywords:
  - python
  - web
  - framework
  - typing
  - dependency injection
  - api
license: MIT
version: v2.8.0
date-released: '2024-04-05'

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 2,915
  • Total Committers: 241
  • Avg Commits per committer: 12.095
  • Development Distribution Score (DDS): 0.802
Past Year
  • Commits: 269
  • Committers: 64
  • Avg Commits per committer: 4.203
  • Development Distribution Score (DDS): 0.784
Top Committers
Name Email Commits
Na'aman Hirschfeld n****d@g****m 577
Janek Nouvertné 2****t 548
Peter Schutt p****r@t****u 350
allcontributors[bot] 4****] 283
Cody Fincher 2****n 138
Jacob Coffee j****b@z****g 132
Na'aman Hirschfeld N****d@s****m 126
sobolevn m****l@s****e 48
dependabot[bot] 4****] 31
guacs 1****s 30
euri10 b****t@g****m 30
Alc-Alc 4****c 29
Konstantin Mikhailov j****b 25
seladb p****s@g****m 24
kedod 3****d 18
Ashwin Vinod a****a@g****m 18
dkress59 2****9 18
Arseny Boykov 3****m 13
Abdulhaq Emhemmed a****d@g****m 12
yudjinn y****g@g****m 11
infohash 4****h 11
George Sakkis g****s@g****m 11
Tory Clasen T****n@G****m 9
Boseong Choi 3****m 8
Kyle Smith s****6@g****m 8
Dane Solberg d****g@g****m 8
jderrien j****n@g****m 7
Tim Wedde t****e@i****m 7
Harshal Laheri 7****7 7
Jon Daly j****y@s****m 6
and 211 more...

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 851
  • Total pull requests: 2,219
  • Average time to close issues: about 2 months
  • Average time to close pull requests: 6 days
  • Total issue authors: 310
  • Total pull request authors: 202
  • Average comments per issue: 2.33
  • Average comments per pull request: 2.61
  • Merged pull requests: 1,714
  • Bot issues: 19
  • Bot pull requests: 317
Past Year
  • Issues: 201
  • Pull requests: 554
  • Average time to close issues: 9 days
  • Average time to close pull requests: 3 days
  • Issue authors: 106
  • Pull request authors: 74
  • Average comments per issue: 0.85
  • Average comments per pull request: 2.06
  • Merged pull requests: 403
  • Bot issues: 0
  • Bot pull requests: 54
Top Authors
Issue Authors
  • peterschutt (72)
  • JacobCoffee (64)
  • provinzkraut (39)
  • sobolevn (24)
  • euri10 (23)
  • gsakkis (21)
  • cofin (20)
  • byte-bot-app[bot] (19)
  • tuukkamustonen (18)
  • umarbutler (13)
  • Goldziher (12)
  • guacs (11)
  • v3ss0n (11)
  • Alc-Alc (11)
  • floxay (10)
Pull Request Authors
  • provinzkraut (444)
  • peterschutt (242)
  • allcontributors[bot] (183)
  • cofin (177)
  • JacobCoffee (143)
  • sourcery-ai[bot] (89)
  • sobolevn (72)
  • euri10 (69)
  • Alc-Alc (50)
  • dependabot[bot] (45)
  • guacs (42)
  • Goldziher (37)
  • kedod (36)
  • jderrien (18)
  • abdulhaq-e (17)
Top Labels
Issue Labels
Bug :bug: (275) Enhancement (177) bug (115) Documentation :books: (75) enhancement (75) documentation (51) Help Wanted :sos: (43) Good First Issue (36) help wanted (34) triage required (31) good first issue (26) OpenAPI (21) DTOs (17) tests-issue (13) Triage Required :hospital: (12) Infrastructure (11) Logging (10) Middleware (8) CLI (8) CI (7) question (6) Typing (6) Security (6) Package (6) upstream (6) Routing (5) Upstream (5) high priority (5) Question (5) great-mcve (5)
Pull Request Labels
size: small (745) pr/internal (546) pr/external (472) Triage Required :hospital: (460) area/docs (437) type/docs (254) type/bug (211) area/private-api (169) type/feat (144) area/dependencies (137) build-ignore (86) area/ci (75) size: medium (69) area/middleware (63) area/plugins (53) size: large (44) area/dto (43) area/testing (40) area/openapi (40) Dependencies (38) area/handlers (34) area/kwargs (32) area/datastructures (29) area/types (27) area/logging (25) area/response (25) area/router (21) do not merge (21) area/signature (20) area/connection (20)

Packages

  • Total packages: 4
  • Total downloads:
    • pypi 823,459 last-month
  • Total docker downloads: 308
  • Total dependent packages: 40
    (may contain duplicates)
  • Total dependent repositories: 166
    (may contain duplicates)
  • Total versions: 410
  • Total maintainers: 3
  • Total advisories: 5
pypi.org: starlite

Performant, light and flexible ASGI API Framework

  • Versions: 144
  • Dependent Packages: 15
  • Dependent Repositories: 70
  • Downloads: 21,061 Last month
  • Docker Downloads: 157
Rankings
Dependent packages count: 0.8%
Stargazers count: 1.3%
Dependent repos count: 1.8%
Average: 2.2%
Downloads: 2.6%
Forks count: 3.0%
Docker downloads count: 3.6%
Maintainers (3)
Last synced: 6 months ago
pypi.org: litestar

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

  • Versions: 57
  • Dependent Packages: 23
  • Dependent Repositories: 96
  • Downloads: 802,398 Last month
  • Docker Downloads: 151
Rankings
Dependent packages count: 1.1%
Stargazers count: 1.3%
Dependent repos count: 1.5%
Downloads: 2.1%
Average: 2.2%
Forks count: 3.0%
Docker downloads count: 4.3%
Maintainers (3)
Funding
  • https://github.com/sponsors/litestar-org
Last synced: 6 months ago
proxy.golang.org: github.com/litestar-org/litestar
  • Versions: 188
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.4%
Average: 5.6%
Dependent repos count: 5.8%
Last synced: 6 months ago
conda-forge.org: starlite
  • Versions: 21
  • Dependent Packages: 2
  • Dependent Repositories: 0
Rankings
Stargazers count: 9.8%
Forks count: 15.2%
Dependent packages count: 19.5%
Average: 19.6%
Dependent repos count: 34.0%
Last synced: 6 months ago

Dependencies

pyproject.toml pypi
  • aiomcache *
  • anyio >=3
  • brotli *
  • click *
  • cryptography *
  • fast-query-parsers *
  • httpx >=0.22
  • importlib-metadata *
  • jinja2 >=3.1.2
  • jsbeautifier *
  • mako >=1.2.4
  • msgspec >=0.11.0
  • multidict >=6.0.2
  • opentelemetry-instrumentation-asgi *
  • picologging *
  • pydantic *
  • pydantic-factories *
  • pydantic-openapi-schema >=1.5.0
  • python >=3.8,<4.0
  • python-jose *
  • pyyaml *
  • redis *
  • rich >=13.0.0
  • structlog *
  • typing-extensions *
.github/workflows/ci.yml actions
  • actions/cache v3 composite
  • actions/checkout v4 composite
  • actions/download-artifact v3 composite
  • actions/setup-python v4 composite
  • actions/upload-artifact v3 composite
  • github/codeql-action/analyze v2 composite
  • github/codeql-action/init v2 composite
  • pdm-project/setup-pdm v3 composite
  • sonarsource/sonarcloud-github-action master composite
.github/workflows/docs-preview.yml actions
  • JamesIves/github-pages-deploy-action v4 composite
  • actions/checkout v4 composite
  • actions/github-script v6 composite
  • dawidd6/action-download-artifact v2 composite
.github/workflows/docs.yml actions
  • JamesIves/github-pages-deploy-action v4 composite
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
  • pdm-project/setup-pdm v3 composite
.github/workflows/pr-title.yml actions
  • amannn/action-semantic-pull-request v5 composite
.github/workflows/publish.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
  • pdm-project/setup-pdm v3 composite
  • pypa/gh-action-pypi-publish release/v1 composite
.github/workflows/test.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
  • actions/upload-artifact v3 composite
  • pdm-project/setup-pdm v3 composite
.github/workflows/codeql.yml actions
  • actions/checkout v4 composite
  • github/codeql-action/analyze v2 composite
  • github/codeql-action/init v2 composite
tests/docker-compose.yml docker
  • gcr.io/cloud-spanner-emulator/emulator latest
  • gcr.io/google.com/cloudsdktool/cloud-sdk 332.0.0-slim
  • gvenzl/oracle-xe 18-slim-faststart
  • mysql latest
  • postgres latest
  • redis latest
docs/_static/versions.json meteor
.devcontainer/Dockerfile docker
  • python ${VARIANT} build