<jupyter_start><jupyter_text>Consul IntroPlease see the [README.md](https://github.com/micahhausler/consul-demo/blob/master/README.md) and get your consul cluster up and running  Setting a key/value with `requests`For full documentation, see the [Consul http-api](https://www.consul.io/docs/agent/http.html)<jupyter_code>import requests

base_url = 'http://192.168.59.103:8500/v1/kv/'

response = requests.put(base_url + 'key1', data="value1")
print(response.text)<jupyter_output>true<jupyter_text>Getting a key/value with `python-consul`For full documentation, see python-consul [documentation](http://python-consul.readthedocs.org/en/latest/consul-kv)<jupyter_code>from consul import Consul

c = Consul('192.168.59.103')

index, data = c.kv.get('key1')

print(data['Value'].decode('utf8'))<jupyter_output>value1
{'fraction_non_alphanumeric': 0.15006150061500614, 'fraction_numerical': 0.03936039360393604, 'mean_word_length': 6.4, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '513796', 'license': 'MIT', 'n_tokens_mistral': 316, 'n_tokens_neox': 293, 'n_words': 50, 'path': 'Consul.ipynb', 'repo_name': 'AndrewScibek/stupid-proxy', 'size': '813'}