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.0.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.0.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bloqzapi-1.0.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.0.0.tar.gz
Algorithm Hash digest
SHA256 8d5d21688a16c96f774d951dc04be0258df00f13f1fb540d190d01052db82daf
MD5 007c37bb97ceb6a2aa61df1dce91cd6e
BLAKE2b-256 10a5c84874e0ecb06286893d81239917b0b593dc8d21805dda79acfe8831de15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bloqzapi-1.0.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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6fd0b6f042f3ab20925a32f09a7a6771ac5a4ade7c9d6c8f55dd55d93a7b7af9
MD5 87705fb116fb4699030ad64f55553dc7
BLAKE2b-256 9346e8fd805f7fe1e2465d8ef2fa407d2572464b3a9c95d3a6f6d0c0720c545d

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