No project description provided
Project description
Hackle Sdk For Python
Install
pip install hackle-sdk
Usage
Import
from hackle import hackle
Close
import atexit
@atexit.register
def __exit__():
hackle_client.close()
User
from hackle.model import Hackle
user = Hackle.user('ae2182e0')
user = Hackle.user(id='ae2182e0', app_version='1.0.1', age=23, paying_customer=True)
Get Variation
from hackle.model import Hackle
user = Hackle.user(id='DEVICE_ID')
hackle_client.variation(experiment_key=42, user=user)
Track Event
event = Hackle.event('purchase')
event = Hackle.event('purchase', value=32000)
event = Hackle.event(key='purchase', value=32000, first_paying=False, app_version='1.0.1', item_count=5)
hackle_client.track(event, user)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hackle-sdk-3.2.0.tar.gz
(25.1 kB
view hashes)
Built Distribution
Close
Hashes for hackle_sdk-3.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7766623f9e7a565f29fcbc51a21ebde6ebfb5f6e27bc934bee9176beeb4d449f |
|
MD5 | ffc448d8302540a465a81afcc4ad32d5 |
|
BLAKE2b-256 | 3a88c0abcb8c21850326f3d87b161160686c710301fc281dddb9104d0ebb1f35 |