[ 原始碼: starlette ]
套件:python3-starlette(0.41.2-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), ])
其他與 python3-starlette 有關的套件
|
|
|
|
-
- 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
- 或者 python3-supported-min (>= 3.10)
- 套件暫時不可用
-
- 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)
- 或者 python3-daphne
- Django Channels HTTP/WebSocket server (Python3 version)
-
- rec: python3-yaml
- YAML parser and emitter for Python3
-
- sug: python3-databases
- async database support for Python's asyncio