mixpanel-py-async
Python library for using Mixpanel asynchronously
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-asyncuv
uv add mixpanel-py-asyncpoetry
poetry add mixpanel-py-asyncInstalling 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
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
mixpanelOfficial Python library for server-side…
permissive · top 5,000 on PyPI
awsmeSends AWS CloudWatch metrics asynchronously and…
permissive · top 15,000 on PyPI
analytics-pythonA Python client library that sends analytics…
permissive · top 5,000 on PyPI
aioshutilProvides async-friendly versions of shutil…
permissive · top 15,000 on PyPI
pyserial-asyncioAdds async/await support to pyserial for…
permissive · top 15,000 on PyPI
celery-batchesCelery Batches provides a Task class that…
permissive · top 15,000 on PyPI
segment-analytics-pythonA Python client for sending analytics events to…
permissive · top 5,000 on PyPI
python-logstash-asyncAsynchronous Python logging handler that…
permissive · top 5,000 on PyPI
confluent-kafkaProvides a high-performance Python client for…
permissive · top 1,000 on PyPI
universal-analytics-python3Sends event and pageview data to Google…
permissive · top 15,000 on PyPI