Skip to main content

Official Mixpanel library for Python

Project description

https://github.com/mixpanel/mixpanel-python/workflows/Tests/badge.svg

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-utils 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.9.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

mixpanel-4.9.0-py2.py3-none-any.whl (8.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: mixpanel-4.9.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.2

File hashes

Hashes for mixpanel-4.9.0.tar.gz
Algorithm Hash digest
SHA256 52b6720aad8622ce87eae3b3307894c95443310bb01b068b2b199dfbf6ce8c9c
MD5 b55c8427e62c4ce98890bf6f65bc0605
BLAKE2b-256 1ae3f40e7289010081fad3f0f2f2ae1de6408ea4bdbaa0e01c937f8a36c942c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mixpanel-4.9.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.2

File hashes

Hashes for mixpanel-4.9.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 28093420171ca42c3204e5fe614f2d4270c24766c61d4a956df396b1f308dba5
MD5 5e2e146786ed83e7b712ba966b1db464
BLAKE2b-256 ea135a0568551c49763e5fe1d0313fe2422c22bc89a635457c1aa405ce3dc3b3

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