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.6.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for scrutinize-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa033dea17774821182ff9be02359674139b36d6610e50775e35816eb28735cb |
|
MD5 | e7c4cc38ddbcd973423e1782a047cd2e |
|
BLAKE2b-256 | 593465fc019a6de5d8eca77a44fde5b53d59534609a48e3f9fc6fe828eaf705b |