Python client for Consul (http://www.consul.io/)
Project description
Python client for Consul.io
Documentation
Status
Example
import consul
c = consul.Consul()
# poll a key for updates
index = None
while True:
index, data = c.kv.get('foo', index=index)
print data['Value']
# in another process
c.kv.put('foo', 'bar')
Installation
pip install python-consul
Status
There’s a few API endpoints still to go to expose all features available in Consul v0.4.1. If you need an endpoint that’s not in the documentation, just open an issue and I’ll try and add it straight away.
Change log
0.3.6
Features
Add https support (thanks @pete0emerson)
Add wan param to agent.members (thanks @sgargan)
0.3.5
Bug Fix
Fix typo setting notes on a check (thanks @ShaheedHaque!)
0.3.4
Features
Add support for the Agent.Check (thanks @sgargan and @ShaheedHaque)
Deprecated
health.check.ttl_pass has been moved to agent.check.ttl_pass
0.3.3
Features
Add support for the Session API (Consul.Session)
Bug Fixes
Fix a bug retrieving folder nodes from the KV store https://github.com/cablehead/python-consul/pull/6#issue-48589128 Thanks @zacman85
0.3.2
Features
Add support for Python 3.4
0.3.1
Features
Add support for the Catalog API (Consul.Catalog)
Add ability to set a default consistency mode for an entire client session
Add the ability to pass the consistency mode with kv.get
0.3.0
Features
Add support for ACLs (Consul.ACL)
API changes (backwards incompatible)
For Consul.Agent.Service.register, rename check argument to script
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.