No-code business rules and remote configurations
Project description
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
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
orquesta_sdk-1.8.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for orquesta_sdk-1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 792e2ef034ebff7f80c037614c783ee2408a5dcfa715f34305b0a9c67e4dffbb |
|
MD5 | 34482fdee3fbb951bd1d059faa314da0 |
|
BLAKE2b-256 | 3207caa4b1bda5e65ee7ec3471ce97073a7aa4c163c05c2e88a0e617ea00b9dc |