Skip to main content

Programmable AI Infrastructure SDK

Project description

Voni AI Python SDK

The official Python SDK for the Voniai programmable AI infrastructure.

Installation

pip install voniai

Quick Start (Headless Mode)

from voniai import Voni

# Initialize the client
voni = Voni(api_key="your_api_key_here")

# Send a message to your co-pilot
response = voni.chat.send_message(
    project_id="your_project_id",
    message="How do I integrate Voni?",
    session_id="user_123"
)

print(f"AI Response: {response['message']}")

Features

  • Robust Security: Automatic HMAC-SHA256 request signing.
  • Project Management: Create and configure projects programmatically.
  • Headless Chat: Interact with the AI engine directly without using the pre-built widget.
  • Webhook Management: Register and manage webhooks for event-driven workflows.

Authentication

Voni uses an API Key + HMAC Signature for all requests. The SDK handles this automatically. Simply provide your API Key during initialization.

voni = Voni(api_key="...")

Error Handling

from voniai import Voni, VoniAuthError, VoniApiError

try:
    projects = voni.projects.list()
except VoniAuthError:
    print("Authentication failed. Check your API Key.")
except VoniApiError as e:
    print(f"API returned an error: {e.status_code}")

License

MIT

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

voniai-0.1.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

voniai-0.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file voniai-0.1.0.tar.gz.

File metadata

  • Download URL: voniai-0.1.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for voniai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5c7f9dfb63257da16796cc66093b87816df30fc34c8b14c09887970e9fe930a2
MD5 6f50aca00cb553eadf5226cc0ec5af34
BLAKE2b-256 0fbeee1de4113e9f53399a2aa2b7cd41b8683a77de141357b9b69ce42562c14c

See more details on using hashes here.

File details

Details for the file voniai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: voniai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for voniai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f4ea65d3ee5daaffd84bbfc0657661f5e3ec6cd5f43ca308c5c54ba2cda586f
MD5 04e6317e907c77d4c62645fd6439b735
BLAKE2b-256 1f08a5d5b01c6820bc318ba909ddba3d7fe157bb226d620663bdfc0234160ca4

See more details on using hashes here.

Supported by

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