Python client for HStreamDB
Project description
hstreamdb-py
Python client for HStreamDB
Installation
Create a new virtual environment if you prefer to use isolated environments:
virtualenv -p python3 ./venv
source ./venv/bin/activate
Install hstreamdb:
pip install hstreamdb
Examples
Here's a basic example (For more examples and api documentation, see: https://hstreamdb.github.io/hstreamdb-py/) :
$ python
>>> from hstreamdb import insecure_client
>>> async def main():
... async with await insecure_client(host="127.0.0.1", port=6570) as client:
... streams = await client.list_streams()
... print(list(streams))
...
>>> import asyncio
>>> asyncio.run(main())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hstreamdb-0.3.0.tar.gz
(10.8 kB
view details)
Built Distribution
hstreamdb-0.3.0-py3.7.egg
(29.9 kB
view details)
File details
Details for the file hstreamdb-0.3.0.tar.gz
.
File metadata
- Download URL: hstreamdb-0.3.0.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ba01ae440f0ab7a30510c0027b97b59a52d0305689e5a87912cb78aed7c4aef |
|
MD5 | 33eaadafade9781d018fa408276eda26 |
|
BLAKE2b-256 | c7a081bcc67e60bd8c622cfd979c25c65cfa30189146497414bdac754331089d |
File details
Details for the file hstreamdb-0.3.0-py3.7.egg
.
File metadata
- Download URL: hstreamdb-0.3.0-py3.7.egg
- Upload date:
- Size: 29.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f24b3b154f05a8a4b3b2ec482f83ccaa6a465417d6327102ce375fa45138b61 |
|
MD5 | 6595ef09bde67fec7ed4c5bc807365f0 |
|
BLAKE2b-256 | dcf0740eccbfef6f02d41a9cc8ca14d964b8ec13ea39cec6c0441f3fa976b68c |