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

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

Uploaded Source

Built Distribution

mixpanel-4.3.0-py2.py3-none-any.whl (8.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for mixpanel-4.3.0.tar.gz
Algorithm Hash digest
SHA256 6812e6e847965e8b35824796e8654f006d3408bd64e82d866b1668a22f67635c
MD5 bbdd131a3506185972b9bda529643763
BLAKE2b-256 f15d1d0cc332e2f0c9e05ff55066b81d7b6b69514c08d5b7bdcae4a32accb7ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mixpanel-4.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2d0ead6daf65c39caab24d74f8b4e4e2f128043c23747f3d63d04978f5dd9755
MD5 9dd44fbe2d7fd97d46c7cc45ed211ee3
BLAKE2b-256 73938e1521b7720606d18166311f0efa6888132dc9540deddf19628db64fb79c

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