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.

To import, export, transform, or delete your Mixpanel data, please see our mixpanel_api package.

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

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

Uploaded Source

Built Distribution

mixpanel-4.6.0-py2.py3-none-any.whl (7.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file mixpanel-4.6.0.tar.gz.

File metadata

  • Download URL: mixpanel-4.6.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3

File hashes

Hashes for mixpanel-4.6.0.tar.gz
Algorithm Hash digest
SHA256 a0a2adba595ad75fecc5e28e46f25d1c8c9bf30fbe704147c48dfab307a84c02
MD5 d42be76c397b9fd3f8237d9629d4711d
BLAKE2b-256 b6f6cf6def43639f5891e33f4a2c253d7d17bb103c72ecf57d44144edb3e54fa

See more details on using hashes here.

File details

Details for the file mixpanel-4.6.0-py2.py3-none-any.whl.

File metadata

  • Download URL: mixpanel-4.6.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3

File hashes

Hashes for mixpanel-4.6.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b010f445d700d555d66e49f48bb72f29a7c4a2181e3e4eb07b19ba53c648d983
MD5 640134c9cdd41da291efc436be436be2
BLAKE2b-256 c06d2a1e92d17fae29744ec4abdf5136618d584ae6aaf2c62e21a45d16d603dd

See more details on using hashes here.

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