Leap360 AI Governance SDK for Python
Project description
Leap360 AI Governance - Python SDK
The official Python client for Leap360. Add one line of code to get real-time observability, security guardrails, and cost tracking for your AI applications.
Installation
pip install leap360
Authentication
Make sure you've authenticated using the Leap360 CLI or set the API key perfectly.
npx leap360 login
Alternatively, you can manually set the environment variable:
export LEAP360_API_KEY="your-api-key"
Quick Start
Wrap your existing AI clients in a single line. The Leap360Tracer automatically hooks into library responses without introducing latency.
from leap360 import Leap360Tracer
from openai import OpenAI
# Initialize the Tracer (pulls from ~/.leap360/config.json securely)
tracer = Leap360Tracer(service_name="customer-support-agent")
# Wrap your existing OpenAI client magically
client = tracer.wrap(OpenAI())
# Make requests as usual - Leap360 natively tracks tokens, latency, and compliance
response = client.chat.completions.create(
model="gpt-4",
messages=[{"role": "user", "content": "How do I upgrade my account?"}]
)
print(response.choices[0].message.content)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file leap360-1.0.0.tar.gz.
File metadata
- Download URL: leap360-1.0.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fc973946744bb370f329fcb9271141f7bcf7887f13278cdba6cec66b69758bc
|
|
| MD5 |
5c9ada765dbe723e871f6d61f3401df3
|
|
| BLAKE2b-256 |
cd6dd3c569834248957a53a14377e0b910c36f991063fb007f0ce00517c31fb7
|
File details
Details for the file leap360-1.0.0-py3-none-any.whl.
File metadata
- Download URL: leap360-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12b57dc6ba6cd2bbb55d54adf172c7f9e423d3a3dd85a93fcf844bfea083fe44
|
|
| MD5 |
5168a0033a9649fd60a2d4d7f8aef96c
|
|
| BLAKE2b-256 |
15957beda1e1f57dbf236284da9288f500756d05f8a60af958eba4da52ffa5b2
|