A Python library designed for asynchronously sending event data to Mixpanel, offering an `AsyncBufferedConsumer` for efficient batching and transmission. It streamlines event tracking in asynchronous applications. Currently at version 0.3.0, it receives updates as needed.
pip install mixpanel-py-asyncVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to initialize `MixpanelAsync`, track an event, update user profile properties, and increment a user property. It highlights the importance of calling `flush()` and `close()` to ensure all buffered events are sent and resources are properly cleaned up before application exit.
Review your `AsyncBufferedConsumer` initialization. Remove any `*args` or `**kwargs` that were previously passed and ensure only named, supported parameters are used. New parameters like `import_url`, `request_timeout`, etc., are now directly supported.
If you were explicitly passing `async=True` to `flush`, change it to `async_=True`.
Always call `await mixpanel.flush()` to send any remaining events in the buffer, and `await mixpanel.close()` to clean up resources, before your application terminates. This should typically be done in a `finally` block or a shutdown hook.
No dependency data recorded yet.