• Stars
    star
    462
  • Rank 92,772 (Top 2 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 10 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

Python client for Consul.io

Documentation

Read the Docs

Status

Build 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

Note: When using python-consul library in environment with proxy server, setting of http_proxy, https_proxy and no_proxy environment variables can be required for proper functionality.

Status

There's a few API endpoints still to go to expose all features available in Consul v0.6.0. If you need an endpoint that's not in the documentation, just open an issue and I'll try and add it straight away.

Mailing List

Contributing

python-consul is currently maintained by:

  • @matusvalo
  • @abn
  • @cablehead

Please reach out if you're interested in being a maintainer as well. Otherwise, open a PR or Issue we'll try and respond as quickly as we're able.

Issue Labels

today!:Some triaging is in progress and this issue should be taken care of in a couple of hours!
priority:There's a clear need to address this issue and it's likely a core contributor will take it on. Opening a PR for these is greatly appreciated!
help wanted:This issue makes sense and would be useful. It's unlikely a core contributor will get to this though, so if you'd like to see it addressed please open a PR.
question:The need for the issue isn't clear or needs clarification, so please follow up. Issues in this state for a few months, without responses will likely will be closed.

PRs

Pull requests are very much appreciated! When you create a PR please ensure:

  1. All current tests pass, including flake8
  2. To add tests for your new features, if reasonable
  3. To add docstrings for new api features you add and if needed link to these docstrings from the sphinx documentation

Releases

# release the current version, eg: 0.6.1-dev -> 0.6.1
bumpversion release

# prepare the next patch (z-stream) version, eg: 0.6.1 -> 0.6.2-dev
bumpversion --no-tag patch

# else, prepare the next minor (y-stream) version, eg: 0.6.1 -> 0.7.0-dev
bumpversion --no-tag minor

More Repositories

1

vanilla

Straightforward concurrency for Python
Python
112
star
2

python-snowflake

A Python generator for the Twitter Snowflake scheme
Python
66
star
3

stacks

clip clip, pew pew
Rust
65
star
4

python-tradier

Python client for the Tradier API - https://developer.tradier.com/
Python
37
star
5

half.sh

a dashboard for shell scripts
Python
22
star
6

levee

Levee is a tool to succinctly and quickly create high performance network appliances with Lua
C
10
star
7

vanilla.consul

Vanilla (https://github.com/cablehead/vanilla) Python client for Consul (http://www.consul.io/)
Python
8
star
8

python-fity3

Fity3 is a Twitter snowflake like scheme generator that fits in 53 bits
Python
7
star
9

nu_plugin_from_sse

Nushell plugin to parse a stream of HTTP server sent events
Rust
6
star
10

http-sh

http -> shell -> http
Rust
4
star
11

noplate

A small experiment for designers who want to make a quick static html site, with simple template reuse, without having to run a full blown server side scripting solution.
JavaScript
3
star
12

dot

Vim Script
3
star
13

txt-sh

A Rust CLI tool for text processing, substituting command patterns (e.g., `$()` and `>()`) with shell command outputs in input text or files.
Rust
3
star
14

vanilla.bean

Obligatory Sinatra style (but concurrent!) micro-web framework for Vanilla.
Python
2
star
15

gpt.sh

various commands to create, modify, and navigate chat threads with OpenAI's GPT
Shell
2
star
16

stache

An intelligent cache
2
star
17

docker-init

Simplified init for bootstrapping a docker container
Python
2
star
18

test-git-hook

1
star
19

foundationdb-experiments

Tooling around with foundationdb
Python
1
star
20

backbone-sortable-list

JavaScript
1
star
21

beats

command line client for the Beats Music service
JavaScript
1
star
22

vagga-alpine-openresty

Config to build an alpine openresty image with vagga
1
star
23

cablehead.github.com

1
star
24

scru128-cli

scru128-cli
Rust
1
star
25

stutter

CLI to read from stdout, and write a stuttering stream to stdout.
Rust
1
star
26

xs

crossing the streams
Rust
1
star
27

vagga-alpine

Container recipes for Vagga; targeting alpine (http://vagga.readthedocs.org/en/latest/)
1
star
28

monglue

Minimal MongoDB document manager and toolkit
Python
1
star
29

xcat

like xargs, but for stdin
Rust
1
star
30

bork

Simplistic AWS Deployment
Python
1
star
31

nu_plugin_http

Rust
1
star
32

gpt2099

TypeScript
1
star
33

luajit-bundle

An experiment at packaging the ability to compile luajit applications to standalone system binaries
Lua
1
star