Skip to main content

Reva AI SDK

Installable Python SDK for Reva AI authorization, discovery, and proxy helpers. It lets your agents (FastAPI, LangChain, LangGraph, CrewAI, AutoGen) and MCP servers enforce decisions from the Reva Trust Gateway (RTG / PDP) on every hop.

Installation

pip install reva-ai-authz

Requires Python 3.10+.

Quick start

from reva_ai.sdk.ai import reva_ai_authorise

RTG Authentication

Set RTG_AUTH_TOKEN when the Reva platform requires a per-tenant API key in addition to RTG_URL.

export RTG_URL="https://rtg.example.com"
export RTG_AUTH_TOKEN="..."

When RTG_AUTH_TOKEN is set, SDK calls to RTG PDP evaluation, token enrichment, final-turn recording, and discovery logging include the API key on a dedicated header:

X-API-Token: <RTG_AUTH_TOKEN>
Authorization: Bearer <end-user JWT>      # unchanged

The Authorization header is left untouched so it continues to carry the end-user token that PDP needs for policy evaluation. The gateway prefers X-API-Token for perimeter authentication and falls back to Authorization only when X-API-Token is absent. If RTG_AUTH_TOKEN is unset, the SDK adds no X-API-Token header.

License

Proprietary — © Reva AI, Inc. All rights reserved. Use of this SDK requires a valid commercial agreement with Reva. See the LICENSE file for terms. For licensing inquiries, contact legal@reva.ai.

Download files

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

Source Distribution

reva_ai_authz-1.0.2.tar.gz (104.8 kB view details)

Uploaded Source

Built Distribution

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

reva_ai_authz-1.0.2-py3-none-any.whl (115.0 kB view details)

Uploaded Python 3

File details

Details for the file reva_ai_authz-1.0.2.tar.gz.

File metadata

  • Download URL: reva_ai_authz-1.0.2.tar.gz
  • Upload date:
  • Size: 104.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.20

File hashes

Hashes for reva_ai_authz-1.0.2.tar.gz
Algorithm Hash digest
SHA256 5ddd5ebd0d7beca323f168b30a6c3728213bb7d5191a153579a0e8044546b7d1
MD5 0437a7f1bc339c31aef1526b4d2cfb88
BLAKE2b-256 b9d20b8693887e7bfc1e182da06c4e9e54f27e8f2492b1705a1a4a8afa978f68

See more details on using hashes here.

File details

Details for the file reva_ai_authz-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: reva_ai_authz-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 115.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.20

File hashes

Hashes for reva_ai_authz-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 47050783538356e117401fb4af4b1fec267e8baf88e6b1d979f602129cf10667
MD5 88dacef2dd81e1b8a7165ae217feda0d
BLAKE2b-256 338c7c65b23df944e3490e4919adb2abf33948bd566109cbf2861c97449d8515

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 Sentry Error logging StatusPage Status page