A very minimal Mixpanel API client for python, based on mixpanel example code from:
Requires curl, simplejson, and Python version 2.4 or higher. mixpanel-python is intended to be simpler than https://pypi.python.org/pypi/mixpanel which has more dependencies, like beanstalkd
Basic Usage:
mp = Mixpanel(“your_api_key”, “your_api_token”) # track an event mp.track_event(“some_event”, {“property”: “val”})
# import an event older than 5 days old mp.import_event(“some_event”, {“property”: “val”, “time”: 1370740703})
# convenience method to track or import event based on its ‘time’ property mp.track_or_import_event(“some_event”, {“time”: 1371345364})
# set property on a person in Mixpanel mp.engage_user_set(“some_user_id”, {“$first_name”: “Pam”})
# block until subprocess sending event to mixpanel has completed sp = mp.track_event(“some_event”, {“property”: “val”}) sp.communicate()
Metadata
Release files for mixpanel-python 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mixpanel-python-0.0.2.tar.gz | 3.5 kB | Without provenance | Details for mixpanel-python-0.0.2.tar.gz |
Release files / mixpanel-python-0.0.2.tar.gz
| Download URL | mixpanel-python-0.0.2.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b93691f73cda82136e27d795bc4e1ae10dcdaf5e67db38579e4ae875378ee83b
|
|
BLAKE2b-256 checksum How to use checksums |
629419784e671ffac82fbe007839ae9281feea03fa7063310931ad0f02da7e57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mixpanel-python 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.