Skip to content
Sections
>> Trisquel >> Balíky >> ecne (12.0LTS) >> python >> python3-starlette
[  aramo  ] [  ecne  ] [  xolotl  ]
[ Zdroj: starlette  ]

Balík: python3-starlette (0.31.1-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 `httpx`.
 * 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),
 ])

Ostatné balíky súvisiace s balíkom python3-starlette

  • závisí
  • odporúča
  • navrhuje
  • dep: python3
    interactive high-level object-oriented language (default python3 version)
  • dep: python3-anyio
    Asynchronous compatibility layer (Python 3)
  • dep: python3-typing-extensions
    Backported and Experimental Type Hints for Python
    alebo python3-supported-min (>= 3.10)
    Balík nie je dostupný
  • 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-multipart
    streaming multipart parser for Python
  • rec: python3-uvicorn
    ASGI server implementation, using uvloop and httptools (Python3 version)
    alebo python3-daphne
    Django Channels HTTP/WebSocket server (Python3 version)
  • rec: python3-yaml
    YAML parser and emitter for Python3

Stiahnuť python3-starlette

Stiahnuť pre všetky dostupné architektúry
Architektúra Veľkosť balíka Nainštalovaná veľkosť Súbory
all 48.3 kB283 kB [zoznam súborov]