Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
dwh-mixpanel
Advanced tools
Stream queries from your data warehouse to events, profiles, groups, or lookup tables in Mixpanel... rETL style 💫.
No intermediate staging/storage required.
Supported Data Warehouses:
run the module, and provide a configuration file as the first argument:
npx dwh-mixpanel ./myConfig.json
for help building a configuration file, run the module with no arguments:
npx dwh-mixpanel ./myConfig.json
if you will use this module frequently, consider a global install:
npm install --global dwh-mixpanel
and then you don't need the npx
:
dwh-mixpanel ./myConfig.json
todo
as stated in the tldr, if you run dwh-mixpanel
with no arguments you get a CLI which helps you build a configuration file:
npx dwh-mixpanel
yields:
at the end of this walkthrough, a JSON file will be saved to your current working directory. once you have a configuration file, you can run it using passing that file in as the first argument:
npx dwh-mixpanel snowflake-mixpanel.json
you'll get some console output as to the status of your job, and once it's complete it will stash the logs in the current working directory.
dwh-mixpanel
can also be used as a ESM module inside any node.js environment.
you use it as any other dependency:
import dwhMp from 'dwh-mixpanel'
it exports a single function, which takes in a single parameter - a configuration object.
this is the entry-point for the whole module:
const myConfig = {
dwh: "athena",
sql: "SELECT * FROM EVENTS",
//etc...
}
const athenaToMp = await dwhMp(myConfig)
the module returns a summary
of the import job, with statistics and logs about how many records were processed.
your configuration is an object (or JSON) with the following structure:
{
dwh: "", // warehouse name
auth: {}, // warehouse auth details
sql: "", // a SQL query
mappings: {}, // col headers → mixpanel fields
mixpanel: {}, // mixpanel auth
options: {}, // job options
tags: {} // arbitrary tags
}
here's a description of each of those keys (and values)
the data warehouse connectors used by this module are implemented as "middleware", and therefore they have different authentication strategies an dependencies.
below, i detail the most commonly used authentication methods for each supported warehouse, but if you find an auth method is not supported for a particular warehouse, please file an issue
FAQs
rETL from a data warehouse to mixpanel
The npm package dwh-mixpanel receives a total of 1 weekly downloads. As such, dwh-mixpanel popularity was classified as not popular.
We found that dwh-mixpanel demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.