Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

Minimal Mixpanel API Client

Project Description

A very minimal Mixpanel API client for python, based on mixpanel example code from:

Requires curl, simplejson, and Python version 2.4 or higher. mixpanel-python is intended to be simpler than which has more dependencies, like beanstalkd

Basic Usage:

mp = Mixpanel(“your_api_key”, “your_api_token”) # track an event mp.track_event(“some_event”, {“property”: “val”})

# import an event older than 5 days old mp.import_event(“some_event”, {“property”: “val”, “time”: 1370740703})

# convenience method to track or import event based on its ‘time’ property mp.track_or_import_event(“some_event”, {“time”: 1371345364})

# set property on a person in Mixpanel mp.engage_user_set(“some_user_id”, {“$first_name”: “Pam”})

# block until subprocess sending event to mixpanel has completed sp = mp.track_event(“some_event”, {“property”: “val”}) sp.communicate()

Release history Release notifications

This version
History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
mixpanel-python-0.0.2.tar.gz (3.5 kB) Copy SHA256 hash SHA256 Source None Jun 23, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page