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/heap-analytics-python-client.git@v0.0.3

Usage

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

About

Python client for the Heap Analytics server-side API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%