https://github.com/hstreamdb/hstreamdb-py
https://github.com/hstreamdb/hstreamdb-py
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hstreamdb/hstreamdb-py
- Owner: hstreamdb
- License: mit
- Created: 2022-05-17T06:58:00.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-04T10:09:30.000Z (almost 3 years ago)
- Last Synced: 2025-01-18T21:55:00.860Z (over 1 year ago)
- Language: Python
- Homepage: https://hstreamdb.github.io/hstreamdb-py/
- Size: 54.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hstreamdb-py
Python client for [HStreamDB](https://github.com/hstreamdb/hstream)
## Installation
Create a new virtual environment if you prefer to use isolated environments:
```sh
virtualenv -p python3 ./venv
source ./venv/bin/activate
```
Install hstreamdb:
```sh
pip install hstreamdb
```
## Examples
Here's a basic example (For more examples and api documentation, see:
) :
```python
$ 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())
```