Skip to main content

Bloqz Intent API SDK - Convert financial intent from natural language into deterministic execution plans

Project description

Bloqz Python SDK

Official Python SDK for the Bloqz Intent API. Convert financial intent from natural language into deterministic execution plans.

Installation

pip install bloqzapi

Quick Start

from bloqzapi import BloqzClient
import os

client = BloqzClient(
    base_url="http://localhost:4000",
    api_key=os.environ["BLOQZ_API_KEY"]
)

# Parse intent from natural language
intent = client.parse_intent({
    "text": "Swap 100 USDC to ETH",
    "context": { "session_id": "demo-1" }
})

# Build execution plan
plan = client.build_plan({
    "text": "Stake $40 of ETH on Ethereum",
    "context": { "session_id": "demo-1", "proof_signer": "user-123" }
})

# Simulate plan
simulation = client.simulate_plan({
    "text": "Swap 100 USDC to ETH"
})

# Validate plan
validation = client.validate_plan(plan_object)

# Verify plan proof
verification = client.verify_plan(plan_object)

Configuration

  • base_url - API base URL (default: http://localhost:4000)
  • api_key - Your API key (required for product endpoints)
  • timeout - Request timeout in seconds (default: 30)
  • max_retries - Maximum retry attempts (default: 2)

Documentation

Full documentation available at: https://bloqz.io/docs

License

UNLICENSED

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

bloqzapi-1.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

bloqzapi-1.1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file bloqzapi-1.1.0.tar.gz.

File metadata

  • Download URL: bloqzapi-1.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for bloqzapi-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e01743c7c660f1c3fc4b4c9960758ceac23ac65a37149bed22ba28ae23f00103
MD5 cbce3d9fc9ed4ae783cbf83071f7a136
BLAKE2b-256 27b9bb6084ee0ceca94acbe4063f18759f51e58fc02a6e5a13802e621db01b84

See more details on using hashes here.

File details

Details for the file bloqzapi-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: bloqzapi-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for bloqzapi-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68a6d758a4e2ec0ec6aba1cee2a3fe2c15da67251fc7ffe78eb0a242fb2e26f2
MD5 d8b2c62f9310a524f1ca91f46e36a1c7
BLAKE2b-256 d483e5d2fb33e4efed1fbaa6f6effff142e3cbb2dfc99c7925136df41dd262fa

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