This library allows for server-side integration of Mixpanel. This is an in-official Mixpanel library for Python3. Its major version number reflects the Mixpanel API version.
- Support for Python3
- Optional async consumer using tornado's AsyncHTTPClient
- Convenient method to generate tracking URLs, useful for email tracking
This library can be installed via PyPI:
pip install mixpanel-py3
Typical usage usually looks like this:
from mixpanel import Mixpanel
mp = Mixpanel(YOUR_TOKEN)
# tracks an event with certain properties
mp.track('button clicked', {'color': 'green', 'size': 'large'})
# sends an update to a user profile
mp.people_set(USER_ID, {'$first_name': 'Graham', 'favorite color': 'red'})
You can use an instance of the Mixpanel class for sending all of your events and people updates.
If you find any issues please file those on GitHub preferably with a pull request.
If you have improved code, tests, documentation or added a feature, please open a pull request and share your work.
mixpanel-py Official client for Python2.
Tornado I/O-loop based web framework.