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

Download files

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

Source Distribution

okuyama-1.0.0.tar.gz (5.7 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page