Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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]
Release History

Release History

This version
History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyhlld-0.1.2.tar.gz (4.9 kB) Copy SHA256 Checksum SHA256 Source May 22, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting