Python client for Distributed KVS okuyama
Project description
Distributed key-value-store okuyama’s Python client.
Usage
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 | RSS feed
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 details)
File details
Details for the file okuyama-1.0.0.tar.gz
.
File metadata
- Download URL: okuyama-1.0.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c03ab79f2cc8d04ade11a6b4485781f03c1dd11f06b02594f27659450937e83 |
|
MD5 | 5db4054cf93d145d2b9fe86dfa4eda32 |
|
BLAKE2b-256 | a75da90058dbf5fdb260355590866abfeb41669689f384aa8123779ea0b0d6ff |