semvec/pypi-packages huggingface dataset:
orquesta-dev 1.0.0
Official Orquesta SDK for Python
License: MIT
Requires Python: >=2.7

<p align="left">
  <a href="https://orquesta.dev" target="_blank">
    <img src="https://static.wixstatic.com/media/e063e5_4f60988535a643218a02ad84cf60b7cd~mv2.png/v1/fill/w_130,h_108,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/Logo%2001.png" alt="Orquesta"  height="84">
  </a>
</p>

# Orquesta Python SDK

**This library allows you to quickly and easily use the Orquesta API v1 via Python.**

Installation
============

Prerequisites
-------------

- Python version 2.7 and 3.5+
- A free Orquesta account from [orquesta.dev](https://orquesta.dev).

### Install package

```bash
pip install sendgrid
```

## Dependencies

- [requests](https://github.com/psf/requests)

## Usage

#### Query a rule

```python

import os
import orquestadev

client = orquestadev.OrquestaClient(os.environ.get('ORQUESTA_API_KEY'))
client.query('<your_rule_key>', '<your_default_value>')
```

#### Query a rule with context

```python

import os
import orquestadev

client = orquestadev.OrquestaClient(os.environ.get('ORQUESTA_API_KEY'))
client.query('<your_rule_key>', '<your_default_value>', {'<your_field_key>': '<your_value>'})
```

#### Query a domain of rules

```python

import os
import orquestadev

client = orquestadev.OrquestaClient(os.environ.get('ORQUESTA_API_KEY'))
client.query('<your_domain_key>')
```