Qx feature flags: thin OpenFeature wrapper for flag-gated pipeline behaviors
Project description
qx-flags
Feature flag evaluation for Qx services via OpenFeature. Automatically injects
tenant_id and user_id from RequestContext into every flag evaluation.
Usage
from qx.flags import FlagClient, InMemoryFlag, InMemoryProvider
# Configure once at startup (swap for Unleash/FlagD in production)
FlagClient.configure(InMemoryProvider({
"new-checkout": InMemoryFlag("on", {"on": True, "off": False}),
}))
# Evaluate anywhere — context is injected automatically
flags = FlagClient()
if await flags.bool("new-checkout", default=False):
return await new_checkout(order)
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
qx_flags-1.0.0.tar.gz
(3.2 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
File details
Details for the file qx_flags-1.0.0.tar.gz.
File metadata
- Download URL: qx_flags-1.0.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
636d57ce913193c501aea753040e21b33937e54d5ded70ae55104aef502ec7e5
|
|
| MD5 |
55e1a0bb3c180c9c7dad52949613a67b
|
|
| BLAKE2b-256 |
1d4cbae2c3ded9b5e511fc16377d7b55991298f39817f1971104d48c1c7426f4
|
File details
Details for the file qx_flags-1.0.0-py3-none-any.whl.
File metadata
- Download URL: qx_flags-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dc45154bbd0d0b17af2cd2e8379bca8cac2bd8144d84f7970fada422f2a29fd
|
|
| MD5 |
6e5f52c240a3617d0e9a45f6196a6581
|
|
| BLAKE2b-256 |
a69c437c45c1f694dbab54db8a07c9b96dce876e2f1f3f2990174a16122d7c9d
|