Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 849 Bytes

File metadata and controls

41 lines (27 loc) · 849 Bytes

featurevisor-example-python

Tiny example application using the Featurevisor Python SDK.

Learn more about Featurevisor at featurevisor.com.

Requirements

  • Python 3.10+

Installation

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Usage

python main.py

What It Does

The script fetches the remote datafile, builds a Featurevisor instance, sets this default context, and evaluates a feature:

{
	"userId": "123",
	"deviceId": "device-23456",
	"country": "nl"
}

It evaluates my_feature, which exists in the sample datafile.

Featurevisor project

Uses this Featurevisor project to fetch the configuration from: https://github.com/featurevisor/featurevisor-example-cloudflare