Extract Mixpanel raw events and store on S3
Features
Download raw events from the Mixpanel data api
Upload on S3
Store locally
Gzip compression
Retry download (5 times, wait 60s before retrying)
Notes:
Parameters can be set by environment variables (like MIXPANEL_KEY)
Download events of yesterday by default
Install
pip install mixpanel-extract
Usage
usage: mixpanel-extract [-h] [--mixpanel-key MIXPANEL_KEY]
[--mixpanel-secret MIXPANEL_SECRET]
[--s3-bucket S3_BUCKET] [--s3-prefix S3_PREFIX]
[--s3-key S3_KEY] [-o OUTPUT] [-z]
[--from-date YYYY-MM-DD] [--to-date YYYY-MM-DD]
optional arguments:
-h, --help show this help message and exit
--mixpanel-key MIXPANEL_KEY
Mixpanel API key
[default=e43729b115512e367e71c86894244d5b]
--mixpanel-secret MIXPANEL_SECRET
Mixpanel API secret
[default=2a188b9d1b41b0ce35e14703e65d7104]
--s3-bucket S3_BUCKET
Store on S3 [default=None]
--s3-prefix S3_PREFIX
Prefix for the S3 key
[default=e43729b115512e367e71c86894244d5b]
--s3-key S3_KEY Prefix for the S3 key [default=2015-03-08]
-o OUTPUT, --output OUTPUT
Store in local filesystem [default=None]
-z, --gzip Store as GZIP file
--from-date YYYY-MM-DD
Extract events from this date [default=2015-03-08]
--to-date YYYY-MM-DD Extract events up to this date [default=2015-03-08]
Example
export MIXPANEL_KEY=XXXXXXXXXXXXXXXXX export MIXPANEL_SECRET=ZZZZZZZZZZZZZZZZZZZZ mixpanel-extract --gzip --s3-bucket jean-mixpanel -o /jean.gz
Metadata
Release files for mixpanel_extract 0.1
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_extract-0.1.tar.gz | 3.8 kB | Without provenance | Details for mixpanel_extract-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mixpanel_extract-0.1-py2-none-any.whl | Python 2 | none | any | Details for mixpanel_extract-0.1-py2-none-any.whl |
Total release size: 9.8 kB
Release files / mixpanel_extract-0.1.tar.gz
| Download URL | mixpanel_extract-0.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b9e029ca0005bc192da8af140478257130b8efe725c25f8c099f0160c8bbe4f
|
|
BLAKE2b-256 checksum How to use checksums |
50e618b2b910fdcd07d834e6d6cbd03c2977895d3e796a8e52e6a8b392d7e959
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / mixpanel_extract-0.1-py2-none-any.whl
| Download URL | mixpanel_extract-0.1-py2-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
0be65fcdf6769b8f0fda53d6e741999c06acba7e3ec8feb7176ed6508edb79e6
|
|
BLAKE2b-256 checksum How to use checksums |
7688f714777b8c8ac864576f1746fe256479ab1157f8a8e7f25adcdfe95591e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mixpanel_extract 0.1
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.