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='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.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for scrutinize-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c833d8413c599a4c51c316a2670954450f82a36dafa5e86d038883ddc822d14 |
|
MD5 | 28cb258806a47ab3c244b31a6f3dde54 |
|
BLAKE2b-256 | 9dffcc0b0dfc112f4b4d561de90a4ec790cdbd9a01fef9315e9ba5216a424d0d |