Skip to main content

Python to Yaml Dag Converter for MWAA Serverless

License

Python to Yaml Dag Converter for MWAA Serverless is a command-line tool for converting Apache Airflow® Dags written in Python to dag-factory compatible Dags written in YAML.

Prerequisites

  • Python 3.11+

Benefits

  • Onboard existing Python Dags to declarative YAML
  • Ensures compatibility with DagFactory 1.0
  • Convert Python Dags to MWAA Serverless compatible YAML
  • Upload converted YAML to S3

⚡ Quick Start

Step 1: Install

pip install python-to-yaml-dag-converter-mwaa-serverless

Step 2: Use

dag-converter convert <python-dag-file>

Call with the --help flag for more options

Step 3: Review

Review the converted Dags in the output_yaml folder in the current directory

Options

  • --help Show help message and exit
  • --output: PATH Path to output converted YAML Dag(s) to [default: output_yaml]
  • --bucket: TEXT S3 bucket to upload converted Dags to. Uses local AWS credentials
  • --validate/--no-validate: Validate the output YAML using DagFactory
  • --debug/--no-debug Enable logging DagBag objects to .initial_task_attributes before and after conversion

Limitations

  • Only AWS operators and AWS provider packages are supported
  • Behavior that is not supported in dag-factory will not be converted
  • Dynamic task mapping conversion is not supported

Examples

dag-converter convert airflow_s3.py

Contributing and Bug Reporting

See CONTRIBUTING for more information.

Security

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.

Metadata

Release files for python-to-yaml-dag-converter-mwaa-serverless 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-to-yaml-dag-converter-mwaa-serverless 0.1.5
File Size Uploaded Provenance Actions
python_to_yaml_dag_converter_mwaa_serverless-0.1.5.tar.gz 44.7 kB Without provenance Details for python_to_yaml_dag_converter_mwaa_serverless-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-to-yaml-dag-converter-mwaa-serverless 0.1.5
File Interpreter ABI Platform Actions
python_to_yaml_dag_converter_mwaa_serverless-0.1.5-py3-none-any.whl Python 3 none any Details for python_to_yaml_dag_converter_mwaa_serverless-0.1.5-py3-none-any.whl

Total release size: 80.8 kB

Release files / python_to_yaml_dag_converter_mwaa_serverless-0.1.5.tar.gz

Download URL python_to_yaml_dag_converter_mwaa_serverless-0.1.5.tar.gz
Size 44.7 kB
Tags Source
SHA-256 checksum
How to use checksums
dad1fd4df958bccc0f8aad6b8cd27eb7c065a6086e63b6d11797f297c2223e01
BLAKE2b-256 checksum
How to use checksums
c8dc0194ed6527d23a392e679e7fc10078e186e7225570b8310c7d92919c7b82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.8.19

Release files / python_to_yaml_dag_converter_mwaa_serverless-0.1.5-py3-none-any.whl

Download URL python_to_yaml_dag_converter_mwaa_serverless-0.1.5-py3-none-any.whl
Size 36.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d7c889c7c31ca56aacf45c0536eca5b45ab9d8f5c72c7b919d0f118e6ab9915
BLAKE2b-256 checksum
How to use checksums
0405ae0e7e0980ed8511752f05f1703b8cc912fd620978b4594e8bd60d2fceee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.8.19

Security for python-to-yaml-dag-converter-mwaa-serverless 0.1.5

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page