Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Client library to interface with hlld servers

Project description

pyhlld
=========

pyhlld provides a Python client library to interface with
hlld servers.

Features
--------


* Provides a simple API for using hlld
* Command pipelining to reduce latency


Install
-------

Download and install from source:

python setup.py install

Example
------

Using pyhlld is very simple:

from pyhlld import HlldClient

# Create a client to a local hlld server, default port
client = HlldClient("localhost")

# Get or create the foobar set
foobar = client.create_set("foobar")

# Set a key and check the size
foobar.add("Test Key!")
assert foobar.info()["size"] == 1

Using pipelining is straightforward as well:

from pyhlld import HlldClient

# Create a client to a local hlld server, default port
client = HlldClient("localhost")

# Get or create the pipe set
pipe = client.create_set("pipe").pipeline()

# Chain multiple add commands
results = pipe.add("foo").add("bar").add("baz").execute()
assert results[0]
assert results[1]
assert results[2]

Project details


Release history Release notifications

This version
History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pyhlld-0.1.2.tar.gz (4.9 kB) Copy SHA256 hash SHA256 Source None May 22, 2013

Supported by

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