root/alpine313/: mixpanel-4.4.0 metadata and description
Official Mixpanel library for Python
| author | Mixpanel, Inc. |
| author_email | dev@mixpanel.com |
| classifiers |
|
| keywords | mixpanel analytics |
| license | Apache |
| metadata_version | 2.1 |
| platform |
|
| requires_dist |
|
| File | Tox results | History |
|---|---|---|
mixpanel-4.4.0-py2.py3-none-any.whl
|
|
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.