<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Consul Intro
Please see the README.md and get your consul cluster up and running
Setting a key/value with requests
For full documentation, see the Consul http-api
Step1:  Getting a key/value with python-consul
For full documentation, see python-consul documentation
<ASSISTANT_TASK:>
Python Code:
import requests
base_url = 'http://192.168.59.103:8500/v1/kv/'
response = requests.put(base_url + 'key1', data="value1")
print(response.text)
Explanation: Consul Intro
Please see the README.md and get your consul cluster up and running
Setting a key/value with requests
For full documentation, see the Consul http-api
End of explanation
from consul import Consul
c = Consul('192.168.59.103')
index, data = c.kv.get('key1')
print(data['Value'].decode('utf8'))
Explanation: Getting a key/value with python-consul
For full documentation, see python-consul documentation
End of explanation
<END_TASK>