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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bloqzapi-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b61509699a881332498ef0289e08aaaa801f5685ee1e5668514d9c568c14d1c6
MD5 c4a61579b5948a42b12045daeb967e12
BLAKE2b-256 0cb7860dd46002e87b1bcc0e03eacfc68353b6a178af46c49b572ada1073ee53

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bloqzapi-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c8ac4d25d8d4403b3664001f16621f8f66b1d632f9acef6b3a91de73e9afb1f
MD5 e6cc76a3b7b07b932d47a49ecc9d1fe3
BLAKE2b-256 1c69af1005b38dbeee54616fdc6769678211eb6881e50ba85651d04d6cd8c306

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