A Python API wrapper for Suvvy AI API
Project description
An async API wrapper for Suvvy AI
built on top of httpx and pydantic :)
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.1a2.tar.gz
(6.6 kB
view hashes)