Official Mixpanel library for Python
Project description
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(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.
mixpanel-py3; a Python 3-only fork of this library that includes some additional features, maintained by Fredrik Svensson.
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.3.0.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for mixpanel-4.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d0ead6daf65c39caab24d74f8b4e4e2f128043c23747f3d63d04978f5dd9755 |
|
MD5 | 9dd44fbe2d7fd97d46c7cc45ed211ee3 |
|
BLAKE2b-256 | 73938e1521b7720606d18166311f0efa6888132dc9540deddf19628db64fb79c |