Dive into Python’s asyncio, part 5 - protocols
Protocols are asyncio's primitives supplied as convenient base classes to quickly set up clients or servers using TCP/UDP (+ subprocesses). These are especially helpful when we need to implement lo...
Protocols are asyncio's primitives supplied as convenient base classes to quickly set up clients or servers using TCP/UDP (+ subprocesses). These are especially helpful when we need to implement lo...
Let's roll with something practical, namely a simple chat application using Sanic framework mentioned in previous post. Sanic supports websockets out of the box thanks to the websockets library. It...
Few days ago while I was reading fullstackpython.com I came across new pythonic micro web framework based on asyncio - Sanic. Coolest thing about Sanic is that it leverages asyncio providing better...
All examples were tested under Python 3.6. The only asyncio rule After reading part 1 you should already know, that a heart of asyncio is an event loop. There is exactly one rule - do not block the...
Concurrency was not seriously taken into account in Python when it was designed. Until 3.4 version, there were two options: threading multiprocessing Although these two modules provided programme...
On 23. December 2016 new minor version of Python was released - 3.6. It brings few enhancements and syntax features. In my opinion the most notable one is introduction of formatted string literals....
Celery is a widely recognized distributed task queue for pythonic projects. Its sole purpose is to reduce load of web servers by delegating time-consuming tasks to separate processes. Our web serv...