Repository navigation
v0.1.0
Superseded by v0.1.1. It limits httpx to versions before 1.0 and fixes integer targeting keys; install it instead. 0.1.0 won't be published to PyPI.
First release of the Flaggr Python SDK.
pip install "flaggr @ git+https://github.com/flaggr-dev/flaggr-python@v0.1.0"The wheel and the source distribution are attached below. The package isn't on PyPI yet.
FlaggrClientandAsyncFlaggrClientevaluate flags withPOST /api/flags/evaluateonhttps://api.flaggr.dev(configurable withapi_url).get_boolean,get_string,get_numberandget_objectreturn the value, or your default when the flag doesn't exist or has another type.resolve_*return anEvaluationDetailwith the reason, the variant, an error code (FLAG_NOT_FOUND,TYPE_MISMATCH) and flag metadata.- Failed requests raise
FlaggrError(FlaggrTimeoutErrorfor timeouts) with the HTTP status. - Python 3.9 to 3.13, httpx 0.24 or later, typed (
py.typed).
Docs: https://flaggr.dev/docs/sdk/python-sdk
Full Changelog: https://github.com/flaggr-dev/flaggr-python/commits/v0.1.0