Contents

starlette 0.20.4

0

The little ASGI library that shines.

The little ASGI library that shines.

Stars: 7216, Watchers: 7216, Forks: 632, Open Issues: 58

The encode/starlette repo was created 4 years ago and was last updated an hour ago.
The project is extremely popular with a mindblowing 7216 github stars!

How to Install starlette

You can install starlette using pip

pip install starlette

or add it to a project with poetry

poetry add starlette

Package Details

Author
Tom Christie
License
BSD
Homepage
https://github.com/encode/starlette
PyPi
https://pypi.org/project/starlette/
GitHub Repo
https://github.com/encode/starlette

Classifiers

  • Internet/WWW/HTTP
No  starlette  pypi packages just yet.

Errors

A list of common starlette errors.

Code Examples

Here are some starlette code examples and snippets.

  • Starlette Routing Examples

    Starlette routing can be composed in many different ways. Here is a simple example from Starlette’s documentation.

GitHub Issues

The starlette package has 58 open issues on GitHub

  • Version 0.19.0
  • Background tasks are cancelled if the client closes connection
  • Add custom URL convertor register
  • Raising Exceptions in sub-applications routes
  • Add listener for disconnect to FileResponse
  • Move exception_handlers type to starlette.types
  • Add security headers as middlewares
  • Remove manual contextvar copy logic
  • Let Request.url_for lookup routes in mounted app first
  • Make the file argument to UploadFile required
  • remove file parameter from UploadFile
  • Feature: Add size attribute to UploadFile
  • feat: fully type annotate datastructures.py
  • Add Python 3.11-dev to the pipeline
  • New exception page.

See more issues on GitHub

Related Packages & Articles

sniffio 1.2.0

Sniff out which async library your code is running under

h11 0.13.0

A pure-Python, bring-your-own-I/O implementation of HTTP/1.1

uvloop 0.16.0

Fast implementation of asyncio event loop on top of libuv

httpie 3.2.1

HTTPie: modern, user-friendly command-line HTTP client for the API era.