![]() I/O such as dealing with slow HTTP requests.Ī strength of the ASGI protocol is that it decouples the server implementationįrom the application framework. Having an async concurrency model also allows for options such as lightweight background tasks,Īnd can be less of a limiting factor for endpoints that have long periods being blocked on network This doesn’t allow for long-lived connections, like you get with long-poll HTTP or WebSocket connections, WSGI applications are a single, synchronous callable that takes a request and returns a response. Most well established Python Web frameworks started out as WSGI-based frameworks. 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |