Python client for Consul.io
importconsulc=consul.Consul()
# poll a key for updatesindex=NonewhileTrue:
index, data=c.kv.get('foo', index=index)
printdata['Value']
# in another processc.kv.put('foo', 'bar')pip install python-consul
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.
