Skip to content
Sections
>> Trisquel >> Packages >> aramo >> python >> python3-starlette
aramo  ]
[ Source: starlette  ]

Package: python3-starlette (0.18.0-1)

ASGI library ideal for building high performance asyncio services

Starlette is a lightweight ASGI (Asynchronous Server Gateway Interface) framework/toolkit, which is ideal for building high performance asyncio services.

It is production-ready, and gives you the following:

 * Seriously impressive performance.
 * WebSocket support.
 * In-process background tasks.
 * Startup and shutdown events.
 * Test client built on `requests`.
 * CORS, GZip, Static Files, Streaming responses.
 * Session and Cookie support.
 * 100% test coverage.
 * 100% type annotated codebase.
 * Zero hard dependencies.

Example:

 from starlette.applications import Starlette
 from starlette.responses import JSONResponse
 from starlette.routing import Route

 async def homepage(request):
     return JSONResponse({'hello': 'world'})

 app = Starlette(debug=True, routes=[
   Route('/', homepage),
 ])

Other Packages Related to python3-starlette

  • depends
  • recommends
  • suggests
  • dep: python3
    interactive high-level object-oriented language (default python3 version)
  • dep: python3-anyio
    Asynchronous compatibility layer (Python 3)
  • dep: python3-contextlib2
    Backport and enhancements for the contextlib module - Python 3.x
    or python3 (>> 3.7)
    interactive high-level object-oriented language (default python3 version)
  • dep: python3-typing-extensions
    Backported and Experimental Type Hints for Python
    or python3 (>> 3.10)
    interactive high-level object-oriented language (default python3 version)
  • rec: python3-aiofiles
    support for Python asyncio file operations
  • rec: python3-h11
    Pure-Python, bring-your-own-I/O implementation of HTTP/1.1 (Python 3)
  • rec: python3-itsdangerous
    Various helpers to pass trusted data to untrusted environment - Python 3.x
  • rec: python3-jinja2
    small but fast and easy to use stand-alone template engine
  • rec: python3-uvicorn
    ASGI server implementation, using uvloop and httptools (Python3 version)
    or python3-daphne
    Django Channels HTTP/WebSocket server (Python3 version)
  • rec: python3-yaml
    YAML parser and emitter for Python3

Download python3-starlette

Download for all available architectures
Architecture Package Size Installed Size Files
all 42.0 kB231 kB [list of files]