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 (automatically loads VONI_API_KEY from env)
voni = Voni()

# 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.
  • Environment Support: Automatically loads VONI_API_KEY from environment variables.
  • 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. You can provide your API Key during initialization or set the VONI_API_KEY environment variable.

# Option 1: Load from environment (Recommended)
voni = Voni()

# Option 2: Explicitly provide key
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.1.tar.gz (15.0 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.1-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: voniai-0.1.1.tar.gz
  • Upload date:
  • Size: 15.0 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.1.tar.gz
Algorithm Hash digest
SHA256 7d253c94aaad5c01702a9e79a49f55b899c533f24ac7241e5a3dcf860b1dd71d
MD5 378a42fc9ea9d06f5f4fa947875f89a8
BLAKE2b-256 d2de23e45af1f7031a5afbc6e69d6ee8dc60de2f6c940f2cfd54d1317d3a14f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: voniai-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eeb7b44ca2582750322634c72a2c8ab28272f51886ba27a9cd3851cebb282bc1
MD5 0d50d3a0c6d8d8f2531dbae18c1bacd1
BLAKE2b-256 4869b48d1998d0be5a54f24becab639d1a4b4c62e42bacedf02dba9a832da682

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