Skip to main content

A Python API wrapper for Suvvy AI API

Project description

An async API wrapper for Suvvy AI

built on top of httpx and pydantic :)

Supported Python versions PyPI version PyPI downloads

Suvvy AI Static Badge

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 = await suvvy.predict(Message(text="Say hello to Python!"), "random_id")
    # 'Hello!'

asyncio.run(main())

Building from sources

git clone https://github.com/barabum0/suvvyapi
cd suvvyapi
pip install -r requirements.txt
python -m build

Project details


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.1a7.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

suvvyapi-0.1a7-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file suvvyapi-0.1a7.tar.gz.

File metadata

  • Download URL: suvvyapi-0.1a7.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for suvvyapi-0.1a7.tar.gz
Algorithm Hash digest
SHA256 b7802bb8330e144d8b205a0cfb87775600f54f479a8e44b56474917cc8be5b94
MD5 9690273727fdc2df5e241b597b3e55ef
BLAKE2b-256 f93cdb5b392e9939db63ae65ee9cda15af6df63d9378e7c7cbf081bc16c58dfa

See more details on using hashes here.

Provenance

File details

Details for the file suvvyapi-0.1a7-py3-none-any.whl.

File metadata

  • Download URL: suvvyapi-0.1a7-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for suvvyapi-0.1a7-py3-none-any.whl
Algorithm Hash digest
SHA256 090cb881c3fc3db8766397e824389a1d0cc867b1164d2dc3c677cc9fc8d283ff
MD5 2449c9751859a36e707d13cbb3294650
BLAKE2b-256 2dcd98a2fbd8a88f918248fb4f2a5cd5a65d7d87e5f81f778a7dff4312fe0d7c

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page