Official Mixpanel library for Python
Project description
This is the official Mixpanel Python library. This library allows for server-side integration of Mixpanel.
To import, export, transform, or delete your Mixpanel data, please see our mixpanel_api package.
Installation
The library can be installed using pip:
pip install mixpanel
Getting Started
Typical usage usually looks like this:
from mixpanel import Mixpanel mp = Mixpanel(YOUR_TOKEN) # tracks an event with certain properties mp.track(DISTINCT_ID, 'button clicked', {'color' : 'blue', 'size': 'large'}) # sends an update to a user profile mp.people_set(DISTINCT_ID, {'$first_name' : 'Ilya', 'favorite pizza': 'margherita'})
You can use an instance of the Mixpanel class for sending all of your events and people updates.
Additional Information
mixpanel-python-async; a third party tool for sending data asynchronously from the tracking python process.
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
mixpanel-4.8.2.tar.gz
(9.3 kB
view hashes)
Built Distribution
Close
Hashes for mixpanel-4.8.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9148e58d516bfc9d1518170f62a1a9210ec6a673514483c2ce9b3f9e5c6d111 |
|
MD5 | 865b985be710631678d7428c20a20a42 |
|
BLAKE2b-256 | 94fd2ea92e9110a5ae7bd4e1721a488ef23d37bb5b4152f63fee8f0407c5318b |