the lightweight experimentation platform
Project description
scrutinize-client
This is the client for the scrutinize experimentation platform.
Installation
To install the project, use pip:
pip install scrutinize
Usage
Once installed, you can publish metrics and conduct experiments using the client API.
Publishing Metrics
from scrutinize import ScrutinizeClient
scrutinize = ScrutinizeClient('https://scrutinize-location')
await scrutinize.observe(
user_id='wilma_rudolph',
metric='purchased_coffee',
value=True,
)
Running an experiment
from scrutinize import ScrutinizeClient
from my_library import can_user_have_free_coffee
scrutinize = ScrutinizeClient('https://scrutinize-location')
give_free_coffee = await scrutinize.call(
experiment_name='eng.give_user_free_coffee',
user_id='wilma_rudolph',
control=False,
experiment=lambda: can_user_have_free_coffee('wilma_rudolph'),
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scrutinize-0.0.3.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for scrutinize-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ecaa28f01b23a5bc6d9160cb68cffa1aa16109251226dbd63b8e20f9e071193 |
|
MD5 | 630f534ff6645086926b2b0079ee2809 |
|
BLAKE2b-256 | ea55a9e803cc2cb850917965839607abbfc72424aff4104ae3dc73e32502fa9b |