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.2.0.tar.gz
(10.1 kB
view hashes)
Built Distribution
hstreamdb-0.2.0-py3.7.egg
(28.0 kB
view hashes)