Skip to main content

A Python SDK for interacting with the Decision Engine REST APIs

Project description

Decision Engine SDK

This is a Python SDK for interacting with the Decision Engine REST APIs.

Installation

pip install requests

Usage

import decision_engine_sdk

# Initialize the SDK
sdk = decision_engine_sdk.DecisionEngineSDK(base_url="http://localhost:8000")  # Replace with your base URL

# Decide Gateway API
payload = {"user_id": "user123", "transaction_amount": 100}
try:
    result = sdk.decide_gateway(payload)
    print(result)
except Exception as e:
    print(e)

# Update Gateway Score API
payload = {"gateway_id": "gateway1", "score": 0.8}
try:
    result = sdk.update_gateway_score(payload)
    print(result)
except Exception as e:
    print(e)

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

decision_engine_sdk-0.1.5.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

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

decision_engine_sdk-0.1.5-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

Details for the file decision_engine_sdk-0.1.5.tar.gz.

File metadata

  • Download URL: decision_engine_sdk-0.1.5.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for decision_engine_sdk-0.1.5.tar.gz
Algorithm Hash digest
SHA256 a614a2655c46a3674db4b5e4457eb0ddd686e83976e9de3cefaa6f02dcd0bf2e
MD5 bddee4728b265d5ff8a6e30c8e22bf91
BLAKE2b-256 b4fd581cffe40a46dabc022f920ca4410ce248010a881e56265ee731db41e198

See more details on using hashes here.

File details

Details for the file decision_engine_sdk-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for decision_engine_sdk-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a4201a13242353c4cdd372958ddc4fa024e1a7ea674c73d76f4b7039f22ebc5e
MD5 09a9ae7ec87d2cdc8867877cf9d07bdd
BLAKE2b-256 665df0e60fe36f01a7035d9d7160a6f6056284e489cdaec72b3921f8b5ed2fa6

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