tooz
Coordination library for distributed systems.
What it is and what it does
Tooz is a coordination library that abstracts away the complexity of building distributed applications by providing a unified API for common distributed primitives. Instead of writing custom code to handle group membership, distributed locks, and leader election, developers use Tooz's consistent interface to these operations, which can be backed by different coordination services. The library is production-stable and actively maintained, supporting Python 3.11 through 3.14.
The package is built on top of established dependencies including stevedore, msgpack, fasteners, tenacity, futurist, oslo.utils, and oslo.serialization. It's designed for teams building distributed systems who need reliable coordination without reinventing these patterns for each new service.
Use it for:
- Implement distributed locks across multiple application instances to prevent concurrent access to shared resources
- Manage group membership to track which nodes are active in a distributed cluster
- Elect a leader node to coordinate work or manage state in a distributed system
- Build distributed task queues or job schedulers that need coordination across workers
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Tooz provides a coordination API for distributed systems, centralizing common primitives like group membership, lock services, and leader election.
Yes. Tooz is production-stable, actively maintained, has low install friction, carries a permissive Apache-2.0 license, and solves a real problem for distributed systems. No known vulnerabilities. Install it if you're building distributed applications that need coordination primitives.
Install
tooz on PyPI
pip
pip install toozuv
uv add toozpoetry
poetry add toozInstalling tooz
Before you install
Low install friction with a pure-Python wheel. Active maintenance with a release 15 days ago. Eight runtime dependencies are all established libraries.
License in practice
Apache-2.0 permissive license allows use in commercial and proprietary projects with minimal restrictions; you must include a copy of the license and note any modifications.
Quickstart
pip install tooz
from tooz import coordination
coord = coordination.get_coordinator('zookeeper://localhost')
coord.start()
Requires Python 3.11 or later; a running coordination backend service (Zookeeper, etcd, etc.) is needed for actual operation.
Verify before relying
- Which backend coordination services are supported by version 9.0.1
- Whether all eight runtime dependencies are required or some are optional for specific backends
- What coordination primitives beyond group membership, locks, and leader election are available
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 8 — stevedore, voluptuous, msgpack, fasteners, tenacity, futurist, oslo.utils, oslo.serialization |
| Maintenance | actively maintained — 15 days since the last release |
| First released | |
| Downloads | 158,649/month — #10,715 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tooz-9.0.1-py3-none-any.whl
Tags
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework…
permissive · top 100 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
cloudpickleCloudpickle extends Python's standard pickle…
permissive · top 1,000 on PyPI
smart-openProvides a unified, open()-compatible Python…
permissive · top 1,000 on PyPI
portalockerPortalocker provides cross-platform file…
permissive · top 1,000 on PyPI
rayRay is a distributed computing framework that…
permissive · top 1,000 on PyPI
kazooKazoo provides a higher-level Python client API…
permissive · top 5,000 on PyPI
oslo.concurrencyoslo.concurrency provides locking mechanisms…
permissive · top 15,000 on PyPI
lockfileProvides a platform-independent file locking…
permissive · top 1,000 on PyPI
aioredlockImplements the Redlock distributed lock…
permissive · top 15,000 on PyPI
zc.lockfileProvides portable inter-process locks…
unclear · top 5,000 on PyPI
PyMySQLLockProvides distributed locking primitives backed…
permissive · top 15,000 on PyPI
redlockImplements the RedLock algorithm to provide…
permissive · top 15,000 on PyPI
oslo.messagingOslo Messaging provides a unified API for RPC…
permissive · top 15,000 on PyPI
redlock-pyImplements Redis-based distributed locks using…
permissive · top 15,000 on PyPI