Skip to main content

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.5.0.tar.gz (11.5 kB view hashes)

Uploaded Source

Built Distribution

hstreamdb-0.5.0-py3.7.egg (31.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page