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.2.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for scrutinize-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85be9d874eb5e4dca9d62c6e693b6d24eea90060607cd5089f34339647fa03cb |
|
MD5 | b3a7760350f795e1c261899749998a1a |
|
BLAKE2b-256 | b8c0c54a2e1d4c5a01215a1688cfe47929009616e0761d5d5dbb5551a1d4fa5d |