A Python API wrapper for Suvvy AI API
Project description
An async API wrapper for Suvvy AI
Installation
pip install -U suvvyapi
Synchronous Usage
from suvvyapi import SuvvyAPIWrapper, Message
suvvy = SuvvyAPIWrapper("YOUR_TOKEN")
# You can get your token at https://home.suvvy.ai/
response = suvvy.predict(Message(text="Say hello to Python!"), "random_id")
# 'Hello!'
Asynchronous Usage
import asyncio
from suvvyapi import AsyncSuvvyAPIWrapper, Message
suvvy = AsyncSuvvyAPIWrapper("YOUR_TOKEN")
# You can get your token at https://home.suvvy.ai/
async def main():
response = suvvy.predict(Message(text="Say hello to Python!"), "random_id")
# 'Hello!'
asyncio.run(main())
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
suvvyapi-0.1a1.tar.gz
(6.5 kB
view details)
Built Distribution
File details
Details for the file suvvyapi-0.1a1.tar.gz
.
File metadata
- Download URL: suvvyapi-0.1a1.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d487334a0e2002059b7a22e0e04785c5fc3106cd0b8e2ad7f27f92b7a43d5ed |
|
MD5 | 7d55887b9dfc543f01850359aa063cea |
|
BLAKE2b-256 | 7f8968e7b3827f2fe61ce175fc5d98794e172f4e1b416c29b6e8645b84a5db90 |
Provenance
File details
Details for the file suvvyapi-0.1a1-py3-none-any.whl
.
File metadata
- Download URL: suvvyapi-0.1a1-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85d8bf27e0e5e0207a2d3d4cc7dcad7e7f30d7ab7d2484ea45ad984043a2f78b |
|
MD5 | baffc08dcd7130972240da676239a95a |
|
BLAKE2b-256 | ed8af02f95e195e3f5202773f12c740e4910b5b936c4c43a7eadb8670cecef97 |