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.3.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.3-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: devbolt-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 4d49ce038d7f03690f0c826a065c98ee635aab3260a3c04a194025e6e3b19f5d
MD5 bd4133ed3a4f79e47cd378dc4afdde34
BLAKE2b-256 1f6a2f35ebd514c67f4cb7dd7d80f5bbdf387c8b0392788582aa441aeef01e74

See more details on using hashes here.

File details

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

File metadata

  • Download URL: devbolt-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dfbba0ed42270966821a0189e329230532c974c1e25a5c93347c86d914932548
MD5 dea179a82289e6d6d031fa6171a53dbb
BLAKE2b-256 005342a33bf55194282fc590183d198469b62175061b4b63e10222a8e2c89675

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