{"id":13737785,"url":"https://github.com/hamiltonkibbe/tutti","last_synced_at":"2026-04-04T13:22:03.652Z","repository":{"id":43552263,"uuid":"419577971","full_name":"hamiltonkibbe/tutti","owner":"hamiltonkibbe","description":"Distributed Synchronization for Python","archived":false,"fork":false,"pushed_at":"2025-02-26T18:20:44.000Z","size":76,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-26T19:28:35.606Z","etag":null,"topics":["distributed-systems","lock","mutex","python","semaphore","synchronization"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/tutti/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hamiltonkibbe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-21T04:16:13.000Z","updated_at":"2024-08-10T22:53:48.000Z","dependencies_parsed_at":"2022-09-14T09:40:51.547Z","dependency_job_id":null,"html_url":"https://github.com/hamiltonkibbe/tutti","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamiltonkibbe%2Ftutti","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamiltonkibbe%2Ftutti/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamiltonkibbe%2Ftutti/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamiltonkibbe%2Ftutti/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hamiltonkibbe","download_url":"https://codeload.github.com/hamiltonkibbe/tutti/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253095966,"owners_count":21853518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["distributed-systems","lock","mutex","python","semaphore","synchronization"],"created_at":"2024-08-03T03:02:00.805Z","updated_at":"2026-04-04T13:22:03.615Z","avatar_url":"https://github.com/hamiltonkibbe.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"![Tutti Logo](docs/tutti.png)\n\n*adverb* -- with all voices or instruments together.\n\n# Distributed Synchronization for Python\nTutti is a nearly drop-in replacement for python's built-in synchronization primitives that lets you fearlessly scale \nyour code across processes, machines, clouds and planets.\n\nFull Documentation available [on Read The Docs](https://tutti-py.readthedocs.io/en/latest/)\n## Features\n \n- Mostly compatible with `threading` primitives\n- Redis backend (Azure and AWS backends on the roadmap)\n\n## Installation\nThe easiest way to install is to just use `pip`:\n\n    pip install tutti\n\n## Example \n\n```python\nfrom tutti import Lock\nfrom tutti import Semaphore\nfrom tutti.asyncio import Lock as AsyncLock\nfrom tutti.asyncio import Semaphore as AsyncSemaphore\nfrom tutti.configuration import RedisLockConfig\nfrom tutti.configuration import RedisSemaphoreConfig\n\n\nREDIS_LOCK_CONFIG = RedisLockConfig(\n    connection_url=\"redis://localhost:6379/0\",\n    name=\"test_lock\",\n    timeout=10,\n    blocking=True,\n)\n\nREDIS_SEMAPHORE_CONFIG = RedisSemaphoreConfig(\n    connection_url=\"redis://localhost:6379/0\",\n    name=\"test_semaphore\",\n    max_concurrency=5,\n    lock_timeout=10\n)\n\n\nwith Lock(REDIS_LOCK_CONFIG):\n    print(\"Locks!\")\n    access_critical_resource()\n\n\nwith Semaphore(REDIS_SEMAPHORE_CONFIG):\n    print(\"Semaphores too!?\")\n    access_less_critical_resource()\n\n\nasync with AsyncLock(REDIS_LOCK_CONFIG):\n    print(\"Synchronized across machines!\")\n    await access_critical_resource()\n\n\nasync with AsyncSemaphore(REDIS_SEMAPHORE_CONFIG):\n    print(\"And it supports asyncio!?\")\n    await access_critical_resource()\n\n```\n\n\n\n## License\n`tutti` is offered under the MIT license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamiltonkibbe%2Ftutti","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamiltonkibbe%2Ftutti","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamiltonkibbe%2Ftutti/lists"}