yaml file to -log-config, if desired.Ĭreate an application, in example.py: async def app ( scope, receive, send ): assert scope = 'http' await send () PyYAML will be installed to allow you to provide a. ![]() python-dotenv will be installed should you want to use the -env-file option.windows users will have colorama installed for the colored logs.the -reload flag in development mode will use watchfiles.the websocket protocol will be handled by websockets (should you want to use wsproto you'd need to install it manually) if possible.the http protocol will be handled by httptools if possible.the event loop uvloop will be installed and used if possible.In this context, "Cython-based" means the following: This will install uvicorn with "Cython-based" dependencies (where possible) and other "optional extras". This will install uvicorn with minimal (pure Python) dependencies. Uvicorn supports HTTP/1.1 and WebSockets. Start building a common set of tooling usable across all async frameworks. The ASGI specification fills this gap, and means we're now able to Until recently Python has lacked a minimal low-level server/application interface forĪsync frameworks. Uvicorn is an ASGI web server implementation for Python.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |