Skip to content

Brave-AI-Lab/mixpanel-python-asyncio

 
 

Repository files navigation

mixpanel-python

This is the unofficial Mixpanel Python asyncio library. This library allows for server-side integration of Mixpanel.

To import, export, transform, or delete your Mixpanel data, please see Mixpanel's mixpanel-utils package.

Installation

The library can be installed using pip:

pip install https://github.com/Brave-AI-Lab/mixpanel-python-asyncio/archive/master.zip

Getting Started

Typical usage usually looks like this:

from mixpanel_asyncio import Mixpanel

mp = Mixpanel(YOUR_TOKEN)

# tracks an event with certain properties
await mp.track(DISTINCT_ID, 'button clicked', {'color' : 'blue', 'size': 'large'})

# sends an update to a user profile
await 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

About

Unofficial Mixpanel Python library for asyncio usage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%