Distributed Synchronization for Python
Tutti is a nearly drop-in replacement for python’s built-in synchronization primitives that lets you fearlessly scale
your code across processes, machines, clouds and planets.
Full Documentation available on Read The Docs
- Mostly compatible with
asyncioprimitives are on the roadmap
- Redis backend (Azure and AWS backends on the roadmap)
The easiest way to install is to just use
pip install tutti
from tutti import Lock, Semaphore with Lock(): print("Synchronized across machines!") access_critical_resource() with Semaphore(value=2): print("Semaphores too!") access_less_critical_resource()
tutti is offered under the MIT license.