Metadata-Version: 2.4
Name: vigsdk
Version: 0.1.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: requests>=2.28.0
Summary: Official Python SDK for Vigilant AI Gateway powered by a high-performance Rust core
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

⚡ # VigSDK
High-Performance Python Client SDK with a Native Rust Core Engine
Engineered for enterprise-grade, low-latency AI inference gateways with built-in PII scrubbing and strict rate-limiting compliance.

# Developed by: Aditya "Aadi" at AROM Labs

🚀 Overview
VigSDK bridges high-level Python application logic with a lightning-fast, secure Rust inference gateway (vigsdk-core). Designed for production environments, it routes completions securely through state-of-the-art models (such as Cloudflare Workers AI) while enforcing authenticated API key vaults, local Moka-cached validations, and zero-latency Server-Sent Events (SSE) streaming.

🔑 Key Features
🚀 Rust-Powered Bridge (PyO3): Core performance-critical tasks, cryptography handles, and buffer management run via a native Rust extension module (vigsdk_core) ensuring maximum throughput and minimal memory overhead.

🛡️ Client-Side Shield & PII Protection: Pre-flight text handling ensures sensitive data patterns (emails, credit cards, credentials) are intercepted and scrubbed before hitting external network pipes.

⚡ Real-Time SSE Streaming: Native generator support for low-latency, token-by-token streaming responses over HTTP/2.

🔒 Enterprise Key Vault Architecture: Authenticated gateways secured via scoped API keys (prefixed with arm-) backed by robust PostgreSQL audit logging and Moka local TTL caching.

🚦 Built-In Rate Limiting: Enforces strict hourly request ceilings (e.g., 60 req/hr tier control) directly at the gateway middleware layer.

📦 Installation
Install the package directly from your local environment workspace or distribution wheel using maturin:
```
Bash
# Navigate to the Python wrapper directory
cd vigsdk-python

# Build and install the Rust core extension in release mode
export PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1
maturin develop --release
```

⚙️ Quickstart Guide
Initialize the SDK using your enterprise arm- API key and execute either a standard synchronous completion or a live SSE stream.

1. Synchronous Inference
```
from vigsdk import VigSDK

# Initialize the client with your AROM Labs gateway credentials
client = VigSDK(
    api_key="arm-YOUR_ACTIVE_API_KEY",
    base_url="https://vigilant-8d2a.onrender.com"
)

# Run a standard completion request
response = client.generate(
    prompt="Explain quantum entanglement in two sentences.",
    model="@cf/meta/llama-3.2-1b-instruct",
    max_tokens=256
)

print(response)
```


2. Live SSE Streaming

```
from vigsdk import VigSDK

client = VigSDK(api_key="arm-YOUR_ACTIVE_API_KEY")

print("Streaming response from gateway...")
for chunk in client.stream_generate(
    prompt="Write a secure Rust function for validating JWT signatures.",
    model="@cf/meta/llama-3.2-1b-instruct",
    max_tokens=512
):
    print(chunk, end="", flush=True)
```


📄 License & Proprietary Notice
Copyright (c) 2026 AROM Labs | Aditya "Aadi". All rights reserved.
This software and its core binaries are proprietary products of AROM Labs. Unauthorized distribution, copying, or reverse engineering is strictly prohibited.
