Metadata-Version: 2.1
Name: switcherlabs
Version: 0.1.0
Summary: Python SDK for SwitcherLabs
Home-page: https://github.com/switcherlabs/switcherlabs-python
Author: SwitcherLabs
Author-email: support@switcherlabs.com
License: MIT
Keywords: switcherslabs api feature-flags
Platform: UNKNOWN
Requires-Python: !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
Description-Content-Type: text/markdown
Requires-Dist: requests[security] (>=2.20) ; python_version < "3.0"
Requires-Dist: requests (>=2.20) ; python_version >= "3.0"

# SwitcherLabs Python SDK

SwitcherLabs is a feature flagging management platform that allows you to get started using feature flags in no time. The SwitcherLabs Python SDK allows you to easily integrate feature flags in your Python projects.

## Installation

Install the package with:

```sh
pip install --upgrade switcherlabs
```

### Requirements

- Python 3.4+ (PyPy supported)

## Usage

The package needs to be configured with your environments API Key, which is available in your SwitcherLabs dashboard under the environment details of the project you wish to use.

```python
import switcherlabs

client = switcherlabs.Client(api_key="<YOUR_API_KEY_HERE>")

flagEnabled = client.evaluate_flag(key="user_123", identifier="new_feature_flag")

if flagEnabled:
    # Do something if flag is enabled
else:
    # Else do something else.
```


