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.1.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.1.0.tar.gz.
File metadata
- Download URL: qx_flags-1.1.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 |
073a3c0bf8aae9837f19556cd3c5f9a6b29052ff1e570a87e4a68a7c89a7f453
|
|
| MD5 |
e19c4da99e82d0899749ec75bc71a02f
|
|
| BLAKE2b-256 |
f164c56ad76d330efbc2202adfad4966dc316518ccd3df7090ebcde086153e0c
|
File details
Details for the file qx_flags-1.1.0-py3-none-any.whl.
File metadata
- Download URL: qx_flags-1.1.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 |
3fc9a5928f3121489fd7c70674d33cfc1ddc1bc4405cf1c73071f9e4021548f2
|
|
| MD5 |
58b44152c8393fd1a0fbc66722c918a4
|
|
| BLAKE2b-256 |
453b97a5791481674f970cb68d6b40a96dea090b017e2bd7b6f40d68e8996aa5
|