Skip to main content

okuyama

https://travis-ci.org/heavenshell/py-okuyama.svg?branch=master

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]

Release files for okuyama 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for okuyama 1.0.0
File Size Uploaded
okuyama-1.0.0.tar.gz 5.7 kB Details

Release files / okuyama-1.0.0.tar.gz

Download URL okuyama-1.0.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9c03ab79f2cc8d04ade11a6b4485781f03c1dd11f06b02594f27659450937e83
BLAKE2b-256 checksum
How to use checksums
a75da90058dbf5fdb260355590866abfeb41669689f384aa8123779ea0b0d6ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page