Skip to content

hamiltonkibbe/tutti

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tutti Logo

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

Features

  • Mostly compatible with threading primitives
  • asyncio primitives are on the roadmap
  • Redis backend (Azure and AWS backends on the roadmap)

Installation

The easiest way to install is to just use pip:

pip install tutti

Example

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()

License

tutti is offered under the MIT license.