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(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

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for mixpanel-4.0.2.tar.gz
Algorithm Hash digest
SHA256 040efbd63217197399f73e59c5a4df5985a83ea72b655fb90dc3b6cbf951b2cf
MD5 6f2fd20decd1465dd4fcce4282f4456e
BLAKE2b-256 28b4f6c37d5473f69201c2af580a0a17f246860aa33ed25256d012ffe7dd998a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page