https://github.com/mixpanel/mixpanel-python
Official Mixpanel Python library.
https://github.com/mixpanel/mixpanel-python
sdk
Last synced: 8 days ago
JSON representation
Official Mixpanel Python library.
- Host: GitHub
- URL: https://github.com/mixpanel/mixpanel-python
- Owner: mixpanel
- License: other
- Created: 2013-06-18T21:30:41.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2024-03-11T14:42:30.000Z (about 1 year ago)
- Last Synced: 2025-05-14T19:48:35.965Z (10 days ago)
- Topics: sdk
- Language: Python
- Homepage: https://mixpanel.com/help/reference/python
- Size: 813 KB
- Stars: 104
- Watchers: 81
- Forks: 85
- Open Issues: 20
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
mixpanel-python
==============================.. image:: https://img.shields.io/pypi/v/mixpanel
:target: https://pypi.org/project/mixpanel
:alt: PyPI.. image:: https://img.shields.io/pypi/pyversions/mixpanel
:target: https://pypi.org/project/mixpanel
:alt: PyPI - Python Version.. image:: https://img.shields.io/pypi/dm/mixpanel
:target: https://pypi.org/project/mixpanel
:alt: PyPI - Downloads.. image:: https://github.com/mixpanel/mixpanel-python/workflows/Tests/badge.svg
This is the official Mixpanel Python library. This library allows for
server-side integration of Mixpanel.To import, export, transform, or delete your Mixpanel data, please see our
`mixpanel-utils package`_.Installation
------------The library can be installed using pip::
pip install mixpanel
Getting Started
---------------Typical usage usually looks like this::
from mixpanel import Mixpanel
mp = Mixpanel(YOUR_TOKEN)
# tracks an event with certain properties
mp.track(DISTINCT_ID, 'button clicked', {'color' : 'blue', 'size': 'large'})# sends an update to a user profile
mp.people_set(DISTINCT_ID, {'$first_name' : 'Ilya', 'favorite pizza': 'margherita'})You can use an instance of the Mixpanel class for sending all of your events
and people updates.Additional Information
----------------------* `Help Docs`_
* `Full Documentation`_
* mixpanel-python-async_; a third party tool for sending data asynchronously
from the tracking python process... |travis-badge| image:: https://travis-ci.org/mixpanel/mixpanel-python.svg?branch=master
:target: https://travis-ci.org/mixpanel/mixpanel-python
.. _mixpanel-utils package: https://github.com/mixpanel/mixpanel-utils
.. _Help Docs: https://www.mixpanel.com/help/reference/python
.. _Full Documentation: http://mixpanel.github.io/mixpanel-python/
.. _mixpanel-python-async: https://github.com/jessepollak/mixpanel-python-async