Python SDK for DevBolt feature flags
Project description
DevBolt Python SDK
Python SDK for DevBolt feature flags.
Installation
pip install devbolt
Quick Start
from devbolt import DevBoltClient, EvaluationContext
# Initialize client
client = DevBoltClient()
# Check if flag is enabled
if client.is_enabled("new_feature"):
print("New feature enabled!")
# With context
context = EvaluationContext(
user_id="user-123",
email="john@example.com"
)
if client.is_enabled("premium_features", context):
print("Premium features enabled!")
# Get detailed evaluation
result = client.evaluate("new_checkout", context)
print(f"Enabled: {result.enabled}")
print(f"Reason: {result.reason}")
Documentation
See main DevBolt documentation for details.
License
MIT
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
devbolt-1.0.4.tar.gz
(16.3 kB
view details)
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
devbolt-1.0.4-py3-none-any.whl
(14.8 kB
view details)
File details
Details for the file devbolt-1.0.4.tar.gz.
File metadata
- Download URL: devbolt-1.0.4.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6117e5c2dd9546c27e7aec23f38d558cc22398d09db62d0c7dd9629d95e79731
|
|
| MD5 |
c9edba3ea932909ccd48f8dac07590ba
|
|
| BLAKE2b-256 |
6edca7f0aef1e70d7917c95d865603714c40788fa0234cbc861e42b98947239a
|
File details
Details for the file devbolt-1.0.4-py3-none-any.whl.
File metadata
- Download URL: devbolt-1.0.4-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd9468d3c90c7eb84276faa21de233de9dbb107d295fe075d1cf9685f0cbd643
|
|
| MD5 |
9493e1b4e86fc94cd20c4038415d689b
|
|
| BLAKE2b-256 |
536a3dbd8a7a69b399ea77e8b36c93129dcf19664dd9c5da91c47d52ca84aef8
|