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-1.0.2.tar.gz
(12.6 kB
view hashes)
Built Distribution
hackle_sdk-1.0.2-py3-none-any.whl
(16.5 kB
view hashes)
Close
Hashes for hackle_sdk-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60604629091a36cfa27b8843880a6858a1a3f94d449fb49de9aa3b3a4cb9337d |
|
MD5 | 6098b2f59d324f61b75a829c2c395763 |
|
BLAKE2b-256 | 9de092ad93427f41f3d64ea588e89180e94c5dd260dabc9e0a36650f87c95263 |