Skip to main content

Python client for Consul (http://www.consul.io/)

Project description

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.

Change log

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


Download files

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

Source Distribution

python-consul-0.3.1.tar.gz (9.0 kB view details)

Uploaded Source

File details

Details for the file python-consul-0.3.1.tar.gz.

File metadata

  • Download URL: python-consul-0.3.1.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for python-consul-0.3.1.tar.gz
Algorithm Hash digest
SHA256 018371cf2e0e2317e4994ce70e99c75e9aab62929dcd176bfdb387bcb3768923
MD5 458e9f232da14085e9f74ae00b083edd
BLAKE2b-256 55cedc11bbed4fb629275e9dd67fd1262bb884f3e4647e2110edb525ee8eba8c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page