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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for mixpanel-py-4.0.2.tar.gz
Algorithm Hash digest
SHA256 cf49d013bf97eb1ed3091108285db00396387c520f5cd0a97b62844e0fbd1e8f
MD5 a26a221fd6a6e62aa9c88e68712acecf
BLAKE2b-256 4f52602475835affab4338cf27103c44a830aa6e335de8b527b9e89a3d54801c

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