Skip to main content

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.0.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

devbolt-1.0.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file devbolt-1.0.0.tar.gz.

File metadata

  • Download URL: devbolt-1.0.0.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

Hashes for devbolt-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0626334e777c04ea0c99663d3494f0bfb254af4ba6936767f62e13ea0f995861
MD5 d2a2a6412c9114cd4fbbf80115e120c3
BLAKE2b-256 cf4e4345908a13757f2ed28767b33f8bda5ec087f70634c241c1f67197f7c37e

See more details on using hashes here.

File details

Details for the file devbolt-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: devbolt-1.0.0-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

Hashes for devbolt-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76ac6669b37d49df7f3bf4d92f7573d1db30d221d9844faf75b091c48b88e54e
MD5 ef614448f82f888646a61f0a6dace8dc
BLAKE2b-256 13d6f4ce2b96f081856dc5e0d9cebaf4f6ee03c371ea831a1b7a4323a2b922ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page