skillfed

mixpanel-py-async

Python library for using Mixpanel asynchronously

mixpanel-py-async v0.3.0 149.1K downloads/30d#11,004 on PyPI62
Permissive license Abandoned released

What it is and what it does

mixpanel-py-async wraps the standard Mixpanel Python client to add asynchronous event handling. Instead of blocking your application while events are sent to Mixpanel's API, it batches events and flushes them in a separate thread, keeping response times fast in request/response scenarios. The package depends only on mixpanel and provides a consumer that replaces the default synchronous behavior.

The library offers configuration options for batch size (default 20), flush timing (default 10 seconds), retry logic (default 4 retries), and API endpoints. You can manually trigger flushes when needed, either asynchronously or synchronously (useful before process shutdown). However, the project has been abandoned since 2021-02-18 with no maintenance activity, so compatibility with newer Mixpanel API versions or Python releases is not guaranteed.

Use it for:

  • Web applications where analytics event tracking should not add latency to HTTP response times
  • High-throughput services that need to batch events to reduce API call overhead
  • Background job systems where you want to track events without blocking task execution
  • Graceful shutdown scenarios where you need to ensure all queued events are flushed before process termination

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides asynchronous event batching and flushing for the Mixpanel Python client, sending analytics events in a background thread without blocking the main application.

Yes, if you are already using mixpanel and your application runs on a Python version and Mixpanel API version compatible with the frozen 0.3.0 release. The low install friction and permissive license make it a straightforward add-on for non-blocking analytics. No, if you need active maintenance, security updates, or compatibility with recent Mixpanel API changes—the abandonment since 2021-02-18 is a significant risk for new projects.

Install

mixpanel-py-async on PyPI

pip

pip install mixpanel-py-async

uv

uv add mixpanel-py-async

poetry

poetry add mixpanel-py-async

Installing mixpanel-py-async

Before you install

Low install friction with a single runtime dependency. However, the package is abandoned—last commit was 2021-02-18 and no releases since then. Use only if the Mixpanel API and your application's Python version remain compatible with the frozen 0.3.0 codebase.

License in practice

Licensed under Apache Software License (permissive). You may use, modify, and distribute this package freely, including in commercial applications, provided you retain the license notice.

Quickstart

pip install mixpanel-py-async

from mixpanel import Mixpanel
from mixpanel_py_async import AsyncBufferedConsumer

mp = Mixpanel('YOUR_TOKEN', consumer=AsyncBufferedConsumer())
mp.track('user_id', 'event_name', {'property': 'value'})

Verify before relying

  • Whether the package works with current versions of the Mixpanel API and modern Python releases
  • Whether AsyncBufferedConsumer's default configuration (10-second flush, batch size 20) suits your throughput needs
  • Current compatibility with the mixpanel runtime dependency across versions

Package facts

License not declared (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 1 — mixpanel
Maintenance abandoned — 2,003 days since the last release
Last repo commit
First released
Downloads 149,075/month — #11,004 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: mixpanel_py_async-0.3.0-py3-none-any.whl

License :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python

Tags

mixpanel async clientasynchronous analytics trackingnon-blocking event batchingmixpanel background threadasync event consumerbatched analytics events
analyticsasync-iobatching

More Internet packages