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.4

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.4
File Size Uploaded Provenance
python_to_yaml_dag_converter_mwaa_serverless-0.1.4.tar.gz 43.0 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 78.6 kB

Release files / python_to_yaml_dag_converter_mwaa_serverless-0.1.4.tar.gz

Download URL python_to_yaml_dag_converter_mwaa_serverless-0.1.4.tar.gz
Size 43.0 kB
Tags Source
SHA-256 checksum
How to use checksums
91531f2f6bf691ce7c2cbc13ce3b548e2a475a06bf23535abf948b50cd2c8bd0
BLAKE2b-256 checksum
How to use checksums
eef3997ac3fdc0bdad16b5c342637c63fc30698b91e23be84944448355158a9a
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.4-py3-none-any.whl

Download URL python_to_yaml_dag_converter_mwaa_serverless-0.1.4-py3-none-any.whl
Size 35.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
560ce38574a2d958305b4e3743e679296e78fcc411b690b18872dee2fd7b12af
BLAKE2b-256 checksum
How to use checksums
1d6fbf2ef846d065fe83d566d53c6bb5a12cf64e99cc2c25c65aacc598cb267b
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.4

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