Server-side Python SDK for feat feature flags. Local flag evaluation against a polled datafile. Zero runtime dependencies (stdlib only).
pip install feat-sdkPython 3.10+.
from feat import Client, ClientConfig, EvalContext
client = Client(ClientConfig(
api_key="feat_sdk_...",
data_plane_url="https://data.feat.so",
))
client.ready()
ctx = EvalContext(
targeting_key="user-123",
kinds={"user": {"plan": "pro", "email": "alice@example.com"}},
)
if client.get_boolean_value("checkout-v2", False, ctx):
# ...
pass
client.close()Use a server API key (feat_sdk_...).
- Fetches a per-environment datafile and keeps it in memory.
- Polls every 30 seconds by default (configurable). ETag-aware via
If-None-Match. - Evaluation runs in-process: no per-flag network call.
- A background daemon thread handles polling;
close()stops it cleanly.
MIT