Skip to content

bigdatacesga/kvstore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python KeyValue Store abstraction API

Purpose

The objective of this module is to provide a common API to different KeyValue stores like consul, etcd or zookeeper.

Usage examples

Basic usage examples:

import kvstore
kv = kvstore.Client()
kv.set(key, value)
kv.get(key)
kv.recurse(key)
kv.delete(key)
kv.delete(key, recursive=True)
kv.index(key, recursive=True)
kv.get(key, wait=True, index=index, wait='10m')
kv.recurse(key, wait=True, index=index, wait='10m')