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

Uploaded Source

Built Distribution

mixpanel-4.8.1-py2.py3-none-any.whl (8.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: mixpanel-4.8.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.2

File hashes

Hashes for mixpanel-4.8.1.tar.gz
Algorithm Hash digest
SHA256 035c8a77e9ef23c2b25a680e6f072606a12ab30dfba0591a64a02e05ec6dea94
MD5 9cea235586726969103a44d4f3387612
BLAKE2b-256 aa728244dd69aafb7c654c4e206667929248292d9fb12b87108c7e8ccff7f9d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mixpanel-4.8.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.2

File hashes

Hashes for mixpanel-4.8.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8818b2f36fd4e8c6e777c0e78edd6a769650e6ffffc22832b96f0a22a50f58c8
MD5 f52bec33152d0bdc077ad9488b26f96d
BLAKE2b-256 0182284a4275e3922ad195900333c441df611c1e93e77d41a6de1d6d85df296d

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