Python SDK for SwitcherLabs
Project description
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:
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.
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file switcherlabs-0.1.1.tar.gz.
File metadata
- Download URL: switcherlabs-0.1.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfeb65a6fff7a0e4fc1a7642ab181f5bc3abc752f01afac6dc1a4a0d8d9475f4
|
|
| MD5 |
a14afc674b4efc964682d53af591072f
|
|
| BLAKE2b-256 |
0e6b318393abf6b7957a3ee916fd224a4f07680475c7cbfed5151f75e319e5b9
|
File details
Details for the file switcherlabs-0.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: switcherlabs-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0b66227eff0335dc504f998913fdba165934baefc35e8171bb4188bf75cb0fd
|
|
| MD5 |
3a459bca6d9e4b01663f1ae128e4819d
|
|
| BLAKE2b-256 |
e127f141fe23e0513539d6ee0ddfb67b4ff4ce2fe02390baa764f83b6eefc6d2
|