Skip to main content

Python client for Distributed KVS okuyama

Project description

Distributed key-value-store okuyama’s Python client.


Connect to MasterNode.

from okuyama import Client

client = Client()
client.auto_connect(['masternode1:8888', 'masternode2:8888'])

Set value

print(client.set('key', 'val')) # => True
print(client.get('key')) # => 'val'

Remove value

print(client.delete('key')) #=> True
print(client.delete('key')) #=> None

Set tags

print(client.set('key1', 'val1', tags=['tag1'])) #=> True
print(client.set('key2', 'val2', tags=['tag1', 'tag2'])) #=> True

Get keys from tag

print(client.execute('get_keys_by_tag', tag='tag1'])) #=> [key1, key2]

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for okuyama, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size okuyama-1.0.0.tar.gz (5.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page