python-consul
python-consul copied to clipboard
Python client for Consul (http://www.consul.io/)
https://www.consul.io/api/txn.html Any play for implementing this? Thanks.
Hi, thank you for this library, following the docs I am not quite clear how to conventionally use Consul API with this lib: (https://www.consul.io/api/agent/service.html) - register a service - check...
Been pondering this for a while now. One of the hindrances I have had working with the code base has been a lack of type hinting. I have for better...
Requests is not needed for users of aiohttp. I create an issue for [setuptools](https://github.com/pypa/setuptools/issues/1139). Perhaps you can think of a better solution possible now.
I created a query, and recorded it's ID. `queryId = c.query.creat('TestService-service', name='testQuery')['ID'] ` but when I attempt to execute this query by ID,it raised a ConsulException. `raise ConsulException("%d %s" %...
The token passed in as an argument in the constructor is overriden by the `CONSUL_HTTP_TOKEN` (if set): https://github.com/cablehead/python-consul/blob/d056ff5c4efc6a5642775ad66600864e3f0f6cbc/consul/base.py#L311 The same is true with the host and port (and others!): https://github.com/cablehead/python-consul/blob/d056ff5c4efc6a5642775ad66600864e3f0f6cbc/consul/base.py#L297-L299...
Consul allows to specify multiple checks when registering a service, but Consul.Agent.Service.register seems to support only one check per definition.
For users (like us :) of the library who want to write unit tests for code that uses `python-consul`, it would be extremely useful to include a [verified fake](https://codewithoutrules.com/2016/07/31/verified-fakes/) which...
Does python-consul handle retrying when an error is encountered during a KV operation? In an unreliable environment, I sometimes see Consul return 500 error. I can certainly refactor my code...
This is due to kennethreitz/requests#2590 : with Requests v2.x, when `PUT /v1/kv/a//b` is redirected to `PUT /v1/kv/a/b`, the content data is dropped (and Consul cannot distinguish it from a genuine...