Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Zookeeper Tools

Project Description

zktools is a package of tools implementing higher level constructs using Apache Zookeeper.

It currently provides:

  • Configuration - Zookeeper Configuration Helpers to store and load configuration information stored in Zookeeper nodes.
  • Locks - A Zookeeper lock with support for non-blocking acquire, modeled on Python’s Lock objects that also includes a Revocable Shared Locks with Freaking Laser Beams described in the Zookeeper Recipe’s.

See the full docs for more information.


zktools is offered under the MPL license.


zktools is made available by the Mozilla Foundation.


0.2.1 (02/16/2012)

  • Fixed packaging bug.

0.2 (02/03/2012)


  • Added context manager return to lock to allow use of the ‘with’ statement.
  • Refactored to use zc.zk ZooKeeper library for higher level Zookeeper abstraction with automatic watch re-establishment.


  • Node object to retrieve ZNode data from Zookeeper and keep it up to date.
  • Node objects can have data and children subscribers.
  • NodeDict object that maps a shallow tree (one level of children) into a dict-like object.

Backward Incompatibilities

  • SharedZkLock has been refactored into ZkWriteLock and ZkReadLock.
  • revoked is a property of Locks, not a method.
  • ZkConnection is gone, lock objects, ZkNode, and ZkNodeDict all expect zc.zk ZooKeeper instances.

0.1 (11/22/2011)


  • Lock implementation, with revokable shared locks.
  • Zookeeper connection object with automatic reconnect.
Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
zktools-0.2.1.tar.gz (193.6 kB) Copy SHA256 Checksum SHA256 Source Feb 16, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting