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

Uploaded Source

File details

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

File metadata

  • Download URL: mixpanel-py-4.0.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mixpanel-py-4.0.1.tar.gz
Algorithm Hash digest
SHA256 206ccce320c334c27f6494360f6beab7ae155f9c96cef1c2d73caa413d069c47
MD5 e9d45a9aa82f95e84c960259a9c4d520
BLAKE2b-256 45cb085e48ea3646c4d8cb1359b01a8e420d694fab8f5c8fd2db404882c298c8

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