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.1.tar.gz (102.6 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.1-py3-none-any.whl (112.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reva_ai_authz-1.0.1.tar.gz
  • Upload date:
  • Size: 102.6 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.1.tar.gz
Algorithm Hash digest
SHA256 b13147c81444a527109db633efd96fa6c281a490506acf50ccee728be7953af0
MD5 95b459a7d8fb7c59c795e5be03761082
BLAKE2b-256 d55371190ca93f5c772e427312bd858053fc1f48578d671f10078e7f129b6c21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reva_ai_authz-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 112.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d20d2ae5eae049be23de8e2a16027cfa55b6e3dae5f0dd4a9ed327e02fe30961
MD5 bf51ebf384c1f6ddcf83b123a532854c
BLAKE2b-256 2083029aab684ad8b75866c124da22a2cf428278d9108568e52ba13e3e5409e9

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