Giter VIP home page Giter VIP logo

mixpanel-python's Introduction

mixpanel-py3

This library allows for server-side integration of Mixpanel. This is an in-official Mixpanel library for Python3. Its major version number reflects the Mixpanel API version.

Features over the official client

  • Support for Python3
  • Optional async consumer using tornado's AsyncHTTPClient
  • Convenient method to generate tracking URLs, useful for email tracking

Installation

This library can be installed via PyPI:

pip install mixpanel-py3

Getting Started

Typical usage usually looks like this:

from mixpanel import Mixpanel

mp = Mixpanel(YOUR_TOKEN)

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

# sends an update to a user profile
mp.people_set(USER_ID, {'$first_name': 'Graham', 'favorite color': 'red'})

You can use an instance of the Mixpanel class for sending all of your events and people updates.

Issues

If you find any issues please file those on GitHub preferably with a pull request.

Contribute

If you have improved code, tests, documentation or added a feature, please open a pull request and share your work.

Additional Information

mixpanel-py Official client for Python2.

Tornado I/O-loop based web framework.

mixpanel-python's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mixpanel-python's Issues

Consumer should have same interface as BufferedConsumer

The approach could be to write the code to use a BufferedConsumer but for debugging or other reasons it should be possible to switch to the normal Consumer on setup without breaking the code. Thus the normal Consumers have to implement the flush method.

flush(self):
    """Just to have the same interface as the BufferedConsumer."""
    pass

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.