Skip to main content

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

Metadata

Release files for voniai 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for voniai 0.1.6
File Size Uploaded Provenance
voniai-0.1.6.tar.gz 15.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for voniai 0.1.6
File Interpreter ABI Platform
voniai-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 37.5 kB

Release files / voniai-0.1.6.tar.gz

Download URL voniai-0.1.6.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
165ed705c476f522e6821fb465aa2937f89ba5c6df844cd3a4115e668906b046
BLAKE2b-256 checksum
How to use checksums
d46d153372e8c815548f7e6e3af7d7709bf71cd8a9afb70cccf62326111161ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / voniai-0.1.6-py3-none-any.whl

Download URL voniai-0.1.6-py3-none-any.whl
Size 22.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
028c3eafea4531177be2e17d81e5b623d5f459d886db60e7b9866b8998dd3d56
BLAKE2b-256 checksum
How to use checksums
6ae64d3a949bcac63774b74158df2dc1eb05f780278e8a0fcf79e59c175a11d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for voniai 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page