feat feature-flag SDK for Python (server-side, local evaluation)
Project description
feat-sdk
Server-side Python SDK for feat feature flags. Local flag evaluation against a polled datafile. Zero runtime dependencies (stdlib only).
Install
pip install feat-sdk
Python 3.10+.
Usage
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_...).
How it works
- 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.
License
MIT
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 feat_sdk-0.1.0.tar.gz.
File metadata
- Download URL: feat_sdk-0.1.0.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4e166356be533257a6c72b3210988a9b205512ea0426081829a1fb2f3580116
|
|
| MD5 |
73d6b92b8d6e428aa63620ff2f4be5d2
|
|
| BLAKE2b-256 |
1843141c4e5f043609b4f43dd17d7321a138640e76c9cc9b703b7de648dee228
|
Provenance
The following attestation bundles were made for feat_sdk-0.1.0.tar.gz:
Publisher:
publish.yml on feathq/python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
feat_sdk-0.1.0.tar.gz -
Subject digest:
f4e166356be533257a6c72b3210988a9b205512ea0426081829a1fb2f3580116 - Sigstore transparency entry: 1686108844
- Sigstore integration time:
-
Permalink:
feathq/python-sdk@4949b3d420a7569de73e5a778d3f17c097f1730c -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/feathq
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4949b3d420a7569de73e5a778d3f17c097f1730c -
Trigger Event:
push
-
Statement type:
File details
Details for the file feat_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: feat_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d46b11bfbdb33fe210de001d4db69c1b6d0afc99eae071e206b88324fcb57e5f
|
|
| MD5 |
130b7a55761f7bc689e15c17cfc91a4d
|
|
| BLAKE2b-256 |
049cf684777e4622d7732bc1a8cad68c72ea82b7125a916433e9dc5674428b14
|
Provenance
The following attestation bundles were made for feat_sdk-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on feathq/python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
feat_sdk-0.1.0-py3-none-any.whl -
Subject digest:
d46b11bfbdb33fe210de001d4db69c1b6d0afc99eae071e206b88324fcb57e5f - Sigstore transparency entry: 1686110605
- Sigstore integration time:
-
Permalink:
feathq/python-sdk@4949b3d420a7569de73e5a778d3f17c097f1730c -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/feathq
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4949b3d420a7569de73e5a778d3f17c097f1730c -
Trigger Event:
push
-
Statement type: