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.

To import, export, transform, or delete your Mixpanel data, please see our mixpanel_api 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.4.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

mixpanel-4.4.0-py2.py3-none-any.whl (7.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: mixpanel-4.4.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for mixpanel-4.4.0.tar.gz
Algorithm Hash digest
SHA256 c2f4a411f9d335a2897b8eae3beb8e1bf88646797976008c7b2d1ed7c5735607
MD5 7876d46a248deed156789f7e7b64382b
BLAKE2b-256 1a88235770afe40621be17dc62db5552f5b36d55ec5229ac25289b8e7540c119

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mixpanel-4.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for mixpanel-4.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8a79e8f0f69f05e259ef65370eeb70280587ffadcc5a0b7f32e0ba1f06ed22e5
MD5 3b108441c6fee1514b80c1ae616abd48
BLAKE2b-256 26c07f234cafdb19e515c62a17dd8ed27dba782b68a93790af659553f37b4496

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