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

Uploaded Source

Built Distribution

mixpanel-4.5.0-py2.py3-none-any.whl (7.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: mixpanel-4.5.0.tar.gz
  • Upload date:
  • Size: 7.0 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.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for mixpanel-4.5.0.tar.gz
Algorithm Hash digest
SHA256 ab395ebbc9390fbec766799131a2ac9edfaea757d04a4cf110b582e34b34845c
MD5 880e294388719873907e729cffdbb25f
BLAKE2b-256 eb1b578a6bf68e7f16665552498474cc944bd8d97e15ff13fe865219effa4887

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mixpanel-4.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.7 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.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for mixpanel-4.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d5cc91a8547470de7ce520741f07dda7ca93f100d8c3afa57427e9050940d063
MD5 ecff880f256c07f1f653142d69b81f8f
BLAKE2b-256 7d3311fdfcbfb9c70e538af785ee18847c0d41d6351941b4167a968b6e424878

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