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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a614a2655c46a3674db4b5e4457eb0ddd686e83976e9de3cefaa6f02dcd0bf2e
|
|
| MD5 |
bddee4728b265d5ff8a6e30c8e22bf91
|
|
| BLAKE2b-256 |
b4fd581cffe40a46dabc022f920ca4410ce248010a881e56265ee731db41e198
|
File details
Details for the file decision_engine_sdk-0.1.5-py3-none-any.whl.
File metadata
- Download URL: decision_engine_sdk-0.1.5-py3-none-any.whl
- Upload date:
- Size: 1.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4201a13242353c4cdd372958ddc4fa024e1a7ea674c73d76f4b7039f22ebc5e
|
|
| MD5 |
09a9ae7ec87d2cdc8867877cf9d07bdd
|
|
| BLAKE2b-256 |
665df0e60fe36f01a7035d9d7160a6f6056284e489cdaec72b3921f8b5ed2fa6
|