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 details)
Built Distribution
File details
Details for the file suvvyapi-0.1a2.tar.gz
.
File metadata
- Download URL: suvvyapi-0.1a2.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 138e4d4b11cb17d6579bad88eb853e67a78172066886d691687f4f7a32920e23 |
|
MD5 | a8472421a1cb13e46d89def83162396a |
|
BLAKE2b-256 | b33c9f2b77cabc8d1b5e86d93f2ca4273998ee9aa1a6c8afa2b26cd1cae829ec |
Provenance
File details
Details for the file suvvyapi-0.1a2-py3-none-any.whl
.
File metadata
- Download URL: suvvyapi-0.1a2-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 | a4faa2482df3483e26fbfd8c0f5d486dae05eccf8cc037be80efb7f301e2821a |
|
MD5 | e1630b0d27e4c98d9ed1955b0b2ef63e |
|
BLAKE2b-256 | f6e977b5d9718d5fd84fb705d8b0339eb782652e2c7b4110346da48b7e57063d |