A simple library for simple connecting to DecisionRules API
Project description
DecisionRulespy
Simple python library that allows you to easily connect to Decisionrules.io from your python application.
Where do i get api key?
You can create your API key here: https://app.decisionrules.io/api-keys
Supported kwargs
- ruleId: string
- token: string
- body: dics
- version: string
- geoloc: string
Version and Geo location are optional parameters. If you left out version then you will automaticaly get result of your latest version deployed on DecisionRules dashboard.
If you omit geo location your request will be computed on EU1 (Ireland).
We offer these values:
- eu1: Ireland
- eu2: Sweden
- us1: Virginia
- us2: North California
Simple usage demo
import decisionrulespy.decisionrules as decisionrules
ruleId="1234abcd"
token="asdf5678"
body={"data":{"my_super_input": "super_input"}}
version="1"
geoloc="eu1"
result = decisionrules.solver(ruleId=ruleId, token=token, body=body)
Dependencies
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
decisionrulespy-1.0.7.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for decisionrulespy-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75b6c45072948b309bdc123e7b3cb3c98375764c7b87d38ead70ea5a6154243b |
|
MD5 | 373a076f8c7145829e9f094621c07992 |
|
BLAKE2b-256 | 67af51761c09dbbc1c81d7fbbb6575f441d277350a329c9738aacbcf9ab18fb2 |