Skip to content

Repository files navigation

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][pypi-url].

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

python -m pip install featureflow-sdk

Usage

Here is a simple example of running your feature that prints "I'm enabled" on the screen.

api_key = "<your-javascript-environment-sdk-key>"

def evaluate_my_feature(user):
        featureflow = Featureflow.init(api_key)

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

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.

Releases

Packages

Used by

Contributors

Languages