The official Dynatrace OpenFeature provider for Python
Project description
Dynatrace OpenFeature Provider for Python
The official Dynatrace OpenFeature provider for Python server-side applications.
Status: Early alpha — not yet ready for production use.
Installation
pip install dynatrace-openfeature-provider-python
Usage
from openfeature import api
from openfeature.evaluation_context import EvaluationContext
from dynatrace.openfeature import DynatraceProvider, DynatraceProviderOptions
options = DynatraceProviderOptions.from_sdk_key(
'dt01.server_us_<key>.de848e97..._a1b2c3d4e5'
)
api.set_provider(DynatraceProvider(options))
client = api.get_client()
ctx = EvaluationContext(targeting_key='user-123')
enabled = client.get_boolean_value('my-feature', False, ctx)
# On shutdown:
api.shutdown()
CDN base URL override (labs / dev environments)
options = DynatraceProviderOptions.from_sdk_key(sdk_key)
Architecture
The provider performs in-process flag evaluation using flagd-core. On initialization it fetches a flagd-format JSON config from the Dynatrace CDN and polls for updates every 10 seconds. No external bucketing API is called during evaluation.
State transitions follow providers.md §4.1:
NOT_READY → READY → STALE → ERROR, with a 1-minute grace period before STALE → ERROR.
Contributing
See CONTRIBUTING.md.
License
Apache 2.0 — see LICENSE.
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
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 dynatrace_openfeature_provider_python-0.0.3.tar.gz.
File metadata
- Download URL: dynatrace_openfeature_provider_python-0.0.3.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
673f5c0c155cdf99f4d828b074548398cab85abf1800a6c2342fe102a3eb2397
|
|
| MD5 |
7f6d3e420e448cdd6975b9f1a5345dd0
|
|
| BLAKE2b-256 |
fd8868346e608afc2e00c64b1f18d865322b9666e4da6ac43b86c53a9db07bea
|
File details
Details for the file dynatrace_openfeature_provider_python-0.0.3-py3-none-any.whl.
File metadata
- Download URL: dynatrace_openfeature_provider_python-0.0.3-py3-none-any.whl
- Upload date:
- Size: 21.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1635ba7058ab6d5ba1dcc69d03aee6ef9c703ed4905ed5bbce1ee5a7c2c0d8ac
|
|
| MD5 |
7a70bb5d116817dddefe395e753bccd6
|
|
| BLAKE2b-256 |
60efd9e8f15923f396116b4734529f0dc032bb26e53a1cd26a4e95b46bb12d7c
|