Skip to main content

Official Mixpanel library for Python

Project description

This is the official Mixpanel Python library. This library allows for server-side intergration of Mixpanel.

Installation

The library can be installed using pip::

pip install mixpanel-python

Getting Started

Typical usage usually looks like this::

#!/usr/bin/env python from mixpanel import Mixpanel

mp = Mixpanel(YOUR_TOKEN)

# tracks an event with certain properties mp.track(‘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

For more information please visit:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mixpanel-py-2.0.1.tar.gz (5.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page