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

Getting Started

Typical usage usually looks like this:

#!/usr/bin/env python from mixpanel import Mixpanel

mp = Mixpanel(YOUR_TOKEN)

# tracks an event with certain properties mp.track(‘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

[Help Docs](https://www.mixpanel.com/help/reference/python)

[Full Documentation](http://mixpanel.github.io/mixpanel-python/)

[mixpanel-python-asyc](https://github.com/jessepollak/mixpanel-python-async) a third party tool for sending data asynchronously from the tracking python process.

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-py-3.1.2.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file mixpanel-py-3.1.2.tar.gz.

File metadata

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

File hashes

Hashes for mixpanel-py-3.1.2.tar.gz
Algorithm Hash digest
SHA256 5baac9d720aa88c391c2ead67823da219d8651cd813d937c6283bce28fc2df94
MD5 4b64498f88578b193407c46c3fedfc63
BLAKE2b-256 4525bdee96f57b258bbbe80dad782e6f36565930edc02fd0f439a5bcbfac23f1

See more details on using hashes here.

Provenance

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