Tiny example application using the Featurevisor Python SDK.
Learn more about Featurevisor at featurevisor.com.
- Python 3.10+
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtpython main.pyThe 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.
Uses this Featurevisor project to fetch the configuration from: https://github.com/featurevisor/featurevisor-example-cloudflare