Metadata-Version: 2.1
Name: rhasspy-client
Version: 1.1.1
Summary: Client library for talking to remote Rhasspy server
Home-page: https://github.com/rhasspy/rhasspy-client
Author: Michael Hansen
Author-email: hansen.mike@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: aiohttp (==3.6.2)
Requires-Dist: attrs (==19.3.0)
Requires-Dist: jsonlines (==1.2.0)

# 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.


