Skip to main content

A Python API wrapper for Suvvy AI API

Project description

SuvvyAPI

Supported Python versions PyPI version PyPI downloads Code style: black Checked with mypy

About SuvvyAPI 📘

SuvvyAPI is an asynchronous Python API wrapper built on top of httpx and pydantic for the Suvvy AI API, offering an easy and Pythonic way to interact with the Suvvy AI services.

Installation 🛠️

To install SuvvyAPI, simply use pip:

pip install -U suvvyapi

Usage 🚀

Synchronous Usage

You can use SuvvyAPI synchronously as follows:

from suvvyapi import Suvvy, Message

suvvy = Suvvy("YOUR_TOKEN")
history = suvvy.as_history("random_id")
response = history.predict_add_message(Message(text="Say hello to Python!"))

Note: Replace "YOUR_TOKEN" with your actual token from Suvvy AI.

More in documentation

Troubleshooting 💡

For issues and troubleshooting, please refer to the issues section on the GitHub repository.

Contribution 👥

Contributions are welcome. Please fork the repository, make your changes, and submit a pull request.

License 📄

SuvvyAPI is released under the MIT License.

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-1.0.1.tar.gz (25.0 kB view details)

Uploaded Source

Built Distribution

suvvyapi-1.0.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file suvvyapi-1.0.1.tar.gz.

File metadata

  • Download URL: suvvyapi-1.0.1.tar.gz
  • Upload date:
  • Size: 25.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.1.0

File hashes

Hashes for suvvyapi-1.0.1.tar.gz
Algorithm Hash digest
SHA256 dfe894d5e265d2cf0b0b8f6484bff4ee3f35353c595057bd3846b75a7a27e5b9
MD5 18368e277b9f05f728754d70ee10c1f2
BLAKE2b-256 e68b7a8cdcd1fadef1fec8b9caf5681c6bd54959f424fc32384ba75575b57389

See more details on using hashes here.

Provenance

File details

Details for the file suvvyapi-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: suvvyapi-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.1.0

File hashes

Hashes for suvvyapi-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9eb3973999d9f94a4e01a94fe3be5ac1cf8e28e4def58d7699b8fce3e25e1a72
MD5 dc7992b4725546c445f838f076b7adc8
BLAKE2b-256 d096bc257131795b65a93945a16cd57cd6e83709455eb9f4c0fb64ff84718c60

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