Skip to content
Sections
>> Trisquel >> Pakete >> aramo >> python >> python3-starlette
aramo  ]
[ Quellcode: starlette  ]

Paket: 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),
 ])

Andere Pakete mit Bezug zu python3-starlette

  • hängt ab von
  • empfiehlt
  • schlägt vor
  • 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
    oder python3 (>> 3.7)
    interactive high-level object-oriented language (default python3 version)
  • dep: python3-typing-extensions
    Backported and Experimental Type Hints for Python
    oder 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)
    oder python3-daphne
    Django Channels HTTP/WebSocket server (Python3 version)
  • rec: python3-yaml
    YAML parser and emitter for Python3

python3-starlette herunterladen

Download für alle verfügbaren Architekturen
Architektur Paketgröße Größe (installiert) Dateien
all 42,0 kB231 kB [Liste der Dateien]