forked from mixpanel/mixpanel-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
36 lines (24 loc) · 1.21 KB
/
README.txt
File metadata and controls
36 lines (24 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
mixpanel-python
===============
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(USER_ID, '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.
[mixpanel-py3](https://github.com/MyGGaN/mixpanel-python) a fork of this library that supports Python 3, and some additional features, maintained by Fredrik Svensson