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.2.tar.gz (25.1 kB view hashes)

Uploaded Source

Built Distribution

suvvyapi-1.0.2-py3-none-any.whl (11.7 kB view hashes)

Uploaded Python 3

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