Skip to content
Kazoo is a high-level Python library that makes it easier to use Apache Zookeeper.
Branch: master
Clone or download
ceache and StephenSorriaux feat(core): improve SASL interface (#546)
Move SASL configuration out of auth_data into its own dictionary which exposes more SASL features (e.g. server service name, client principal...). Legacy syntax is still supported for backward compatibilty.
Remove SASL from auth_data and place it between 'connection' and 'zookeeper protocol level authentication' to simplify connection logic and bring code in line with the protocol stack (SASL wraps Zookeeper, not the other way around).
Consistent exception, `AuthFailedError`, raised during authentication failure between SASL and ZK authentication.
New 'SASLException' exception raised in case of SASL intrisinc failures.
Add support for GSSAPI (Kerberos).

Example connection using Digest-MD5:

  client = KazooClient(
      sasl_options={'mechanism': 'DIGEST-MD5',
                    'username': 'myusername',
                    'password': 'mypassword'}
  )

Example connection using GSSAPI (with some optional settings):

  client = KazooClient(
      sasl_options={'mechanism': 'GSSAPI',
                    'service': 'myzk',                  # optional
                    'principal': 'clt@EXAMPLE.COM'}     # optional
  )
Latest commit cd49b3f Feb 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs style(Makefile): add self-documenting make targets (#531) Oct 26, 2018
kazoo feat(core): improve SASL interface (#546) Feb 12, 2019
.clog.toml chore: tag 2.3.1 release Jun 1, 2017
.gitignore Remove deprecated `pip --download-cache` option. Jul 24, 2017
.hound.yml feat: pep8 all the things Jun 2, 2017
.travis.yml feat(core): improve SASL interface (#546) Feb 12, 2019
CHANGES.md chore: 2.6.1 release and changelog Jan 29, 2019
CONTRIBUTING.md docs: minor tweaks to contributing.md (#464) Jul 24, 2017
LICENSE Initial commit and project structure May 23, 2012
MANIFEST.in
Makefile Remove unused GEVENT_VERSION env variable. Jul 24, 2017
README.md Add "Reviewed by Hound" badge Oct 18, 2018
ensure-zookeeper-env.sh feat(core): improve SASL interface (#546) Feb 12, 2019
requirements.txt feat(core): improve SASL interface (#546) Feb 12, 2019
requirements_eventlet.txt Bump up eventlet + gevent version to be newer May 29, 2015
requirements_gevent.txt fix: need gevent >= 1.2, not > 1.1 Nov 3, 2017
requirements_sasl.txt
requirements_sphinx.txt
run_failure.py feat: pep8 all the things Jun 2, 2017
setup.cfg chore: 2.5.0 release and changelog Jun 1, 2018
setup.py feat(core): improve SASL interface (#546) Feb 12, 2019
tox.ini feat(core): improve SASL interface (#546) Feb 12, 2019

README.md

Kazoo

Build Status Latest Version Reviewed by Hound

kazoo implements a higher level API to Apache Zookeeper for Python clients.

See the full docs for more information.

License

kazoo is offered under the Apache License 2.0.

Authors

kazoo started under the Nimbus Project and through collaboration with the open-source community has been merged with code from Mozilla and the Zope Corporation. It has since gathered an active community of over fifty contributors.

You can’t perform that action at this time.