Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.13 KB

README.rst

File metadata and controls

52 lines (36 loc) · 1.13 KB

Python client for Consul.io

Documentation

Read the Docs

Status

Build StatusCoverage 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.