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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for mixpanel-4.10.0.tar.gz
Algorithm Hash digest
SHA256 87733b1fa966bb4edc265a97d10ee71e22174e7a17a9ed6c739468b0eba88d3b
MD5 4509aa088addf22a3f34496afaaf46f7
BLAKE2b-256 8e07419b8fa71e43149b02142dc665071ac884c8f5dfae171595feee8e82f7a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mixpanel-4.10.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/4.0.1 CPython/3.9.13

File hashes

Hashes for mixpanel-4.10.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bbf6ebe5b79556931e1c6b67b4b9e0a1fab60f81638a35c167fca62e7c05398d
MD5 e347dcef6e684120793d7bc78893364a
BLAKE2b-256 3d13da8f3969c32cccf021fdaa9e635fd0221d920d00e3fe24dfdab94bf7c9b3

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