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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scrutinize-0.0.6.tar.gz.
File metadata
- Download URL: scrutinize-0.0.6.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03c7998d34a9427aca397216a352571d431c0429e24d0678072b0eb77df2871b
|
|
| MD5 |
962745349a1bb6dfae0868847a5f1fb4
|
|
| BLAKE2b-256 |
951c1756c08a127629d0d784b8f0ecdf8f5ca24deaffc8f186b25771ee01a39b
|
File details
Details for the file scrutinize-0.0.6-py3-none-any.whl.
File metadata
- Download URL: scrutinize-0.0.6-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa033dea17774821182ff9be02359674139b36d6610e50775e35816eb28735cb
|
|
| MD5 |
e7c4cc38ddbcd973423e1782a047cd2e
|
|
| BLAKE2b-256 |
593465fc019a6de5d8eca77a44fde5b53d59534609a48e3f9fc6fe828eaf705b
|