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

Uploaded Source

Built Distribution

suvvyapi-0.1a4-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for suvvyapi-0.1a4.tar.gz
Algorithm Hash digest
SHA256 88e05cf29065d5e7568de316d7097baab00ccffbe02ea03b9a7c245bd7f2df5b
MD5 055360bb1d5c454ab1eea9c5e3d5f9a4
BLAKE2b-256 9bdcd8b0cd0ec2679475b2437126c0371ea80b6de9039f3f92d62cdbcbf2548e

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: suvvyapi-0.1a4-py3-none-any.whl
  • Upload date:
  • Size: 8.7 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.1a4-py3-none-any.whl
Algorithm Hash digest
SHA256 08728499a227dde073e0e45da34b1fc29d54b1d43ee7405894841f491eaa67d9
MD5 0a152af21dc4a84a6c873373e9a57bb0
BLAKE2b-256 1b2851407b87dba29181ec111b446a0d37338a3def291cf6f078dc9ac6220a9c

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