gituser/production/: mixpanel-4.1.0 metadata and description
Official Mixpanel library for Python
| author | Mixpanel, Inc. |
| author_email | dev@mixpanel.com |
| classifiers |
|
| keywords | mixpanel analytics |
| license | Apache |
| requires_dist |
|
| File | Tox results | History |
|---|---|---|
mixpanel-4.1.0-py2.py3-none-any.whl
|
|
|
mixpanel-4.1.0.tar.gz
|
|
This is the official Mixpanel Python library. This library allows for server-side integration of Mixpanel.
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(USER_ID, 'button clicked', {'color' : 'blue', 'size': 'large'})
# sends an update to a user profile
mp.people_set(USER_ID, {'$first_name' : 'Amy', 'favorite color': 'red'})
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.
mixpanel-py3; a Python 3-only fork of this library that includes some additional features, maintained by Fredrik Svensson.