Skip to main content

Yebo Python SDK - Authorization infrastructure for AI agents

Project description

Yebo Python SDK

Authorization infrastructure for AI agents. Every action is verified before execution.

Install

pip install yebo-sdk

Quick Start

from yebo import Yebo

yebo = Yebo(api_key="yk_live_...", gateway="https://gateway.yebo.dev")

# Check if an action is allowed
decision = yebo.preflight(
    capability="payment",
    amount=5000,
    counterparty="acme-vendor",
    subject_identity="user-123",
)
print(decision["decision"])  # ALLOW | REQUIRE_APPROVAL | DENY

# Submit for authorization
mandate = yebo.authorize(
    capability="payment",
    amount=5000,
    counterparty="acme-vendor",
    subject_identity="user-123",
)
print(mandate["mandate_id"])  # mnd_...

# Verify authorization
result = yebo.verify(mandate_id=mandate["mandate_id"])
print(result["valid"])  # True

# Get receipt
receipt = yebo.receipt(mandate_id=mandate["mandate_id"])

Local Policy Evaluation (No Gateway)

from yebo import Yebo

yebo = Yebo(api_key="test")

# Evaluate locally against threshold rules
result = yebo.protect(
    action_type="payment",
    amount=200,
    vendor="Acme Corp",
)
print(result["decision"])  # ALLOW
print(result["reason"])    # Amount $200.00 is below the auto-approve threshold of $500.00

Links

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

yebo_sdk-1.0.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

yebo_sdk-1.0.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file yebo_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: yebo_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for yebo_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2b30b02b3d245fbe5d56f50ffc0fe96be1517709fd7ae10c185343df77bf2c12
MD5 2c422dcf3acac587218933b0f84edaa5
BLAKE2b-256 038e065262f5ad5cd42761d421a9374fd0b41af15308e0481cbf50ace13d38ae

See more details on using hashes here.

File details

Details for the file yebo_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: yebo_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for yebo_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f52eeac6699e3350cb80a092a8576e7080061f6e5a711ebee933a9ad659b4cda
MD5 ac8c7aa6d7fb658f71922181010cbbe3
BLAKE2b-256 7a4815cb6ca150b84f8f6112c410f73ad48d29f0247fc8a3bbd84f6caf4e2b7a

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