the lightweight experimentation platform
Project description
scrutinize
This is the python client for the scrutinize experimentation platform.
Installation
To install the client, 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.5.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for scrutinize-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c1bfa5a218d7abe4a6436070b10b8e62f99b951020cb709d70f791136d01628 |
|
MD5 | d1b3f322a0cb0f6a9a1b6c011ce06daa |
|
BLAKE2b-256 | f74f9a7a5d23498ee74af6834dde372a4f8cbebdabb6237ba769a2289ef7182c |