Skip to main content

No-code business rules and remote configurations

Project description

Orquesta

Orquesta Python SDK

This library allows you to quickly and easily use the Orquesta API via Python.

Installation

Prerequisites

  • Python version 2.7 and 3.5+
  • A free Orquesta account from orquesta.dev.

Install package

pip install orquesta-sdk

## Usage

#### Query a rule with context

```python

import os
import orquestadev

client = orquestadev.OrquestaClient(os.environ.get('ORQUESTA_API_KEY'))
result = client.query('<your_rule_key>', '<your_default_value>', {'<your_field_key>': '<your_value>'})

## Example

result = client.query(
            "kill_switch", false, {"environments": "production", "isAdmin": True}
        )

Query a rule without context

import os
import orquestadev

client = orquestadev.OrquestaClient(os.environ.get('ORQUESTA_API_KEY'))
client.query('<your_rule_key>', '<your_default_value>')

## Example

result = client.query("kill_switch", False)

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

orquesta_sdk-1.8.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

orquesta_sdk-1.8-py3-none-any.whl (4.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