Client library for talking to remote Rhasspy server
Project description
Rhasspy Client
Basic client library for talking to a remote Rhasspy server. Uses aiohttp.
Example
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:
$ python3 -m rhasspyclient <COMMAND> [<ARG>, ...]
Use --help
to see available commands.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rhasspy-client-1.1.0.tar.gz
(5.7 kB
view details)
File details
Details for the file rhasspy-client-1.1.0.tar.gz
.
File metadata
- Download URL: rhasspy-client-1.1.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57c5c6c766271ab10284eb394ce6bee101a17cdaaa2b7e0a10c771f3fc20ec21 |
|
MD5 | 9f3340249b585c46735548daa29d0afe |
|
BLAKE2b-256 | a9305d4f940411c0a459217f258007c1dc8c3216c1da87e00308bbb01e081870 |