Skip to main content
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]

Download files

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

Source Distribution

pyhlld-0.1.2.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file pyhlld-0.1.2.tar.gz.

File metadata

  • Download URL: pyhlld-0.1.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyhlld-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3f724d369f7ca82da949e888456b0c15b8c944cb0ff9010140e3194153c12ae5
MD5 1e63c24c10d2019e1b5f78814a222ce1
BLAKE2b-256 c0c5e8336b5868fbe2426d60c6a273ff271f13be41db6686a320802ff5f0116a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 file

0.1.1

1 file

0.1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page