Skip to main content

featureflow-python-sdk

Python SDK for the featureflow feature management platform

Get your Featureflow account at featureflow.io

Get Started

The easiest way to get started is to follow the Featureflow quick start guides

Installation

The SDK is available on PyPI as featureflow-sdk.

You can either add it as a dependency or install it globally.

python -m pip install featureflow-sdk

Usage

Create one Featureflow client for the lifetime of your application and share it. The constructor starts background threads that poll Featureflow for flag configuration and batch evaluation events back to the server. Constructing a client per request (or per evaluation) spawns new threads and re-downloads your flags every time — create it once at startup, then call evaluate() on that single instance as often as you like; evaluation is local and cheap.

import os

from featureflow import Featureflow, User

# Once, at application startup. Use your server environment key (sdk-srv-env-...).
featureflow = Featureflow(os.environ["FEATUREFLOW_SERVER_KEY"])


def show_my_feature(user_id):
    user = User(key=user_id, attributes={"tier": "gold"})

    if featureflow.evaluate("my-cool-feature", user).isOn():
        print("I'm enabled")

In a web application, create the client at startup and reuse it across requests — see examples/server for how the Flask example does exactly this.

For multivariate flags, check a specific variant or read the evaluated value:

evaluated = featureflow.evaluate("checkout-flow", user)

if evaluated.is_("variant-b"):
    ...

print(evaluated.value())  # e.g. "variant-b", or "off"

Example server

See examples/server for a small Flask app you can run locally to manually test evaluations against your Featureflow account from a browser.

Release files for featureflow-sdk 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for featureflow-sdk 0.2.0
File Size Uploaded
featureflow_sdk-0.2.0.tar.gz 15.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for featureflow-sdk 0.2.0
File Interpreter ABI Platform
featureflow_sdk-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.8 kB

Release files / featureflow_sdk-0.2.0.tar.gz

Download URL featureflow_sdk-0.2.0.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7cee8dcdea7b04865f0811bf34aa17035f7cc2463ae45d8a7697d84183033cc2
BLAKE2b-256 checksum
How to use checksums
fdb571dbf87795a65194da77bb65a5e93f3a9bc75a6457a34527d324d4e4f8f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.

Transparency log

Release files / featureflow_sdk-0.2.0-py3-none-any.whl

Download URL featureflow_sdk-0.2.0-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e845a2cb23ca9ae04634fd0cd0b373e55cc9f646d05db318d124c3a253058e2
BLAKE2b-256 checksum
How to use checksums
291d16239e82d98be948d504af224685113fa9f7cfd6652af3bb216aa6760246
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.0 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page