A Python3 client library for the Heap Analytics server-side API.
It supports both the track and identify APIs. See Heap documentation.
pip install git+git://github.com/m-vdb/[email protected]
from heapapi import HeapAPIClient
heap_client = HeapAPIClient("app_id")
heap_client.identify(
identity="[email protected]",
properties={"age": 30, "country": "USA"}
)
heap_client.track(
identity="[email protected]",
event="Purchase",
properties={"cost": 20, "currency": "usd"}
)