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-2.1.1.tar.gz
(18.4 kB
view hashes)
Built Distribution
hackle_sdk-2.1.1-py3-none-any.whl
(30.0 kB
view hashes)
Close
Hashes for hackle_sdk-2.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 736fc99d92415605932ad4448b52f3c34368b3407ca9c7c0b4f8e1eb5ccb2f38 |
|
MD5 | ae8c51c9ce82b3d56e4c824a7f8b617d |
|
BLAKE2b-256 | cfb4579a8f1146db3deda984c37e5c41b5ac34f2580028570370a13d8cef128d |