Skip to main content

Official Mixpanel library for Python

Project description

PyPI PyPI - Python Version PyPI - Downloads 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.10.1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

mixpanel-4.10.1-py2.py3-none-any.whl (9.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: mixpanel-4.10.1.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for mixpanel-4.10.1.tar.gz
Algorithm Hash digest
SHA256 29a6b5773dd34f05cf8e249f4e1d16e7b6280d6b58894551ce9a5aad7700a115
MD5 e97bb8e4d6fcad06fddc02e511c5031e
BLAKE2b-256 bda39d71562db2107da31be6a988cac88cd1be11364d103b618a98ba92d2487b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mixpanel-4.10.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for mixpanel-4.10.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a7a338b7197327e36356dbc1903086e7626db6d88367ccdd732b3f3c60d3b3ed
MD5 a079d002be3d73d99169b9cba8db1e58
BLAKE2b-256 725a8048544f73e22ebd27bdeca64ce51578578873e5da9ba3d3f99d692f9034

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