semvec/pypi-packages huggingface dataset:
rhasspy-client 1.1.1
Client library for talking to remote Rhasspy server
Requires Python: >=3.6

# Rhasspy Client

[![Continous Integration](https://github.com/rhasspy/rhasspy-client/workflows/Tests/badge.svg)](https://github.com/rhasspy/rhasspy-client/actions)
[![PyPI package version](https://img.shields.io/pypi/v/rhasspy-client.svg)](https://pypi.org/project/rhasspy-client)
[![Python versions](https://img.shields.io/pypi/pyversions/rhasspy-client.svg)](https://www.python.org)
[![GitHub license](https://img.shields.io/github/license/rhasspy/rhasspy-client.svg)](https://github.com/rhasspy/rhasspy-client/blob/master/LICENSE)

Basic client library for talking to a remote [Rhasspy](https://rhasspy.readthedocs.io) server. Uses [aiohttp](https://aiohttp.readthedocs.io/en/stable/).

## Example

```python
import asyncio

import aiohttp
from rhasspyclient import RhasspyClient

async def main():
    async with aiohttp.ClientSession() as session:
        client = RhasspyClient("http://localhost:12101/api", session)
        result = await client.text_to_intent("what time is it")
        print(result)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())
```

## Module CLI

You can run the module too:

```bash
$ python3 -m rhasspyclient <COMMAND> [<ARG>, ...]
```

Use `--help` to see available commands.