kvstore.py
def set(self, k, v):
        """Add or update a key, value pair to the database"""
        k = k.lstrip('/')
        url = '{}/{}'.format(self.endpoint, k)
        r = requests.put(url, data=str(v))
        if r.status_code != 200 or r.json() is not True:
            raise KVStoreError('PUT returned {}'.format(r.status_code))
def set(self, k, v):
        """Add or update a key, value pair to the database"""
        k = k.lstrip('/')
        url = '{}/{}'.format(self.endpoint, k)
        r = requests.put(url, data=str(v))
        if r.status_code != 200 or r.json() is not True:
            raise KVStoreError('PUT returned {}'.format(r.status_code))
Add or update a key, value pair to the database