=========
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]
Metadata
Release files for pyhlld 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyhlld-0.1.2.tar.gz | 4.9 kB | Without provenance | Details |
Release files / pyhlld-0.1.2.tar.gz
| Download URL | pyhlld-0.1.2.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f724d369f7ca82da949e888456b0c15b8c944cb0ff9010140e3194153c12ae5
|
|
BLAKE2b-256 checksum How to use checksums |
c0c5e8336b5868fbe2426d60c6a273ff271f13be41db6686a320802ff5f0116a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyhlld 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.