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
- drop mixpanelpyclient into your project. Use as any python module.
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,
})
python test.py
- 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
mixpanelpyclient
is distributed under the MIT license.