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/heap-analytics-python-client.git@v0.0.3
from heapapi import HeapAPIClient
heap_client = HeapAPIClient("app_id")
heap_client.identify(
identity="user@email.com",
properties={"age": 30, "country": "USA"}
)
heap_client.track(
identity="user@email.com",
event="Purchase",
properties={"cost": 20, "currency": "usd"}
)