Skip to main content

Python SDK for Beav3r approval and relay flows.

Project description

beav3r-sdk

Python SDK for Beav3r action requests, relay approvals, signer registration, and approval submission.

Install

cd beav3r-sdk-py
python3 -m pip install -e .

If you prefer not to install the package, you can also run the demo with PYTHONPATH=src.

Quick example

from beav3r_sdk import Beav3r

client = Beav3r(
    base_url="http://127.0.0.1:3000",
    agent_id="agent_demo_1",
    api_key="bvr_test_...",
    default_expiry_seconds=180,
)

result = client.guard(
    {
        "actionType": "transfer",
        "payload": {"asset": "USDT", "amount": 5, "destination": "0xlowdemo"},
        "attributes": {"asset": "USDT", "amount": 5, "destination": "0xlowdemo"},
    }
)

print(result)

Demo

python3 examples/agent_demo.py high
python3 examples/agent_demo.py watch act_high_123

The demo looks for BEAV3R_ENV_FILE first, then nearby .env files in the SDK repo or sibling beav3r-server and beav3r-demo folders. If you use the signing flows, install PyNaCl so device signing works.

Compatibility note

As of the 2026-04-03 security hardening pass:

  • reject_approval(...) must send signature and expiry
  • device-scoped reads use signed query parameters for:
    • get_action_status_with_options
    • get_action_with_options
    • list_pending_actions
    • list_recent_actions
  • /actions/request now requires an API key with actions:relay

If the Beav3r server changes auth or approval-signing behavior again, review the sibling integrations in the shared ~/beav3r workspace before release.

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

beav3r_sdk-0.1.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

beav3r_sdk-0.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file beav3r_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: beav3r_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for beav3r_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3d63ecd9441434a4a5947e976585d2777a96737b4ac2e5d22a9059315c7fa7a3
MD5 719722dff46080fa7016ffa0e9c02b1c
BLAKE2b-256 9da1f58fbfacf822700ee963fcf512382d88277605f564a336be520d4fc90b90

See more details on using hashes here.

File details

Details for the file beav3r_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: beav3r_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for beav3r_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d78d59f09d7dc6dafb3a17af7f105f65d1b11df2413ed89c8a962a4a49ff580
MD5 a66efe9319917bfefff486b23373455d
BLAKE2b-256 0d029bc702889037288801139c03acc9fff8e4d1160c6ad90ebf5304469e87e6

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