/mixpanelpyclient

Mixpanel event collection API python client

Primary LanguagePython

Mixpanel Analytics API python client

Overview:

This library enables any python process to upload events to the Mixpanel analytics service It's compatible with python 2.6/2.7 and python 3.2

This implementation is inspired from this blog post

Usage :

  • drop mixpanelpyclient into your project. Use as any python module.

Example :

    from maxpanelpyclient import EventTracker
    
    TOKEN = XYZ // Mixpanel Token
    tracker = EventTracker(TOKEN)
    tracker.track_async("My Event", {
        "distinct_id": "123",
        "mp_tag_name": "My User Name",
        "my_property": "some value",
        "some_int_value": 0,
    })

Tests :

python test.py

Roadmap :

  • offline support : Storage of collection data locally and replay when online again
  • support for convenient features such as mixpanel.register
  • Turn this lib into a proper python module
  • Enable travis-ci.org test runs

License :

mixpanelpyclient is distributed under the MIT license.