Metadata-Version: 2.1
Name: decisionrulespy
Version: 1.0.9
Summary: A simple library for simple connecting to DecisionRules API
Home-page: https://github.com/decisionrules/decisionrulespy
Author: DecisionRules
Author-email: sales@decisionrules.io
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/decisionrules/decisionrulespy/issues
Project-URL: Docs, https://docs.decisionrules.io/docs/
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# DecisionRulespy

Simple python library that allows you to easily connect to [Decisionrules.io](https://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

````python
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, geoloc=geoloc, version=version)

````

# Dependencies

[Requests](https://pypi.org/project/requests/)


