Skip to main content

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

Dependencies

Requests

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

decisionrulespy-1.0.9.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

decisionrulespy-1.0.9-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page