Skip to content

m-vdb/heap-analytics-python-client

 
 

Repository files navigation

heap-analytics-python-client

Build Status Coverage Status Pypi version

A Python3 client library for the Heap Analytics server-side API.

It supports both the track and identify APIs. See Heap documentation.

Installation

pip install git+git://github.com/m-vdb/[email protected]

Usage

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"}
)

About

Python client for the Heap Analytics server-side API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%