Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

leap360-1.0.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

leap360-1.0.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

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

Hashes for leap360-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4fc973946744bb370f329fcb9271141f7bcf7887f13278cdba6cec66b69758bc
MD5 5c9ada765dbe723e871f6d61f3401df3
BLAKE2b-256 cd6dd3c569834248957a53a14377e0b910c36f991063fb007f0ce00517c31fb7

See more details on using hashes here.

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

Hashes for leap360-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12b57dc6ba6cd2bbb55d54adf172c7f9e423d3a3dd85a93fcf844bfea083fe44
MD5 5168a0033a9649fd60a2d4d7f8aef96c
BLAKE2b-256 15957beda1e1f57dbf236284da9288f500756d05f8a60af958eba4da52ffa5b2

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