Skip to main content

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-py

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(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

[Help Docs](https://www.mixpanel.com/help/reference/python)

[Full Documentation](http://mixpanel.github.io/mixpanel-python/)

[mixpanel-python-asyc](https://github.com/jessepollak/mixpanel-python-async) a third party tool for sending data asynchronously from the tracking python process.

[mixpanel-py3](https://github.com/MyGGaN/mixpanel-python) a fork of this library that supports Python 3, and some additional features, maintained by Fredrik Svensson

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-4.0.0.tar.gz (6.2 kB view details)

Uploaded Source

File details

Details for the file mixpanel-py-4.0.0.tar.gz.

File metadata

File hashes

Hashes for mixpanel-py-4.0.0.tar.gz
Algorithm Hash digest
SHA256 b1f3445f32f9ae426348861793e1f2842a5c5f8d8d3133b935f9963ce56332d3
MD5 9216bf82026b81f07e4ca4dd2f439c7a
BLAKE2b-256 d36c7c4d591ed682f576181a8a0abfafe7b9954d20ce6211c50f09a711fffa28

See more details on using hashes here.

Provenance

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