app.py
.app.py
in your favorite text editor or IDE and write a simple Python program:app.py
to include initialization of the Statsig SDK and to check a feature flag. You will need a server secret key from Statsig, which you can get from the Statsig dashboard.'your_server_secret_key'
with your actual server secret key from Statsig.'your_experiment_name'
with the name of your experiment.'your_experiment_name'
.variant_a
and variant_b
.'text'
for each variant and configure the text you wish to display, such as “This is Control Variant” and “This is Test Variant”.