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

Uploaded Python 3

File details

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

File metadata

  • Download URL: decision_engine_sdk-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 3fa0cf8badc0b33ccacdb7a784349a806fc825d1bf3573da849d5fb14713d72c
MD5 565b00dc2175f8d9815c3be7ce745e29
BLAKE2b-256 7e785073bd2cf39df6989be06578ff2953caed28dba90190108ec44915800d55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for decision_engine_sdk-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 eca88c047a3d8694cd7ff3c06957f0a9e52e1c06f2bf564438f48b2f97d373bd
MD5 ad106cfdb2dc1b7ca462d49056e5e15b
BLAKE2b-256 2d5733e055b0cbf327cd33299fb20b7e368e9d29e481f7dc7d65482acdf0ee98

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