Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Air2phin is a tool for migrating Airflow DAGs to DolphinScheduler Python API.
air2phin is a tool for migrating Airflow DAGs to DolphinScheduler Python API.
For now, it just for test and without publish to pypi but will be adding in the future. You could still install locally by yourself.
python -m pip install --upgrade air2phin
Here will give a quick example to show how to migrate base on standard input.
# Quick test the migrate rule for standard input
# Can also add option `--diff` to see the diff detail of this migrate
air2phin test "from airflow.operators.bash import BashOperator
test = BashOperator(
task_id='test',
bash_command='echo 1',
)
"
And you will see the migrated result in the standard output. air2phin can only migrate standard input, it can also migrate file, directory and even can use in your python code. For more detail, please see our usage.
The documentation host on read the doc and is available at https://air2phin.readthedocs.io.
For now, we support following statement from Airflow's DAG files
Before Migration | After Migration |
---|---|
from airflow import DAG | from pydolphinscheduler.core.process_definition import ProcessDefinition |
with DAG(...) as dag: pass | with ProcessDefinition(...) as dag: pass |
Before Migration | After Migration |
---|---|
from airflow.operators.dummy_operator import DummyOperator | from pydolphinscheduler.tasks.shell import Shell |
from airflow.operators.dummy import DummyOperator | from pydolphinscheduler.tasks.shell import Shell |
dummy = DummyOperator(...) | dummy = Shell(..., command="echo 'airflow dummy operator'") |
Before Migration | After Migration |
---|---|
from airflow.operators.bash import BashOperator | from pydolphinscheduler.tasks.shell import Shell |
bash = BashOperator(...) | bash = Shell(...) |
Before Migration | After Migration |
---|---|
from airflow.operators.spark_sql_operator import SparkSqlOperator | from pydolphinscheduler.tasks.sql import Sql |
spark = SparkSqlOperator(...) | spark = Sql(...) |
Before Migration | After Migration |
---|---|
from airflow.operators.python_operator import PythonOperator | from pydolphinscheduler.tasks.python import Python |
python = PythonOperator(...) | python = Python(...) |
FAQs
Air2phin is a tool for migrating Airflow DAGs to DolphinScheduler Python API.
We found that air2phin 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.