How hasn-tech/python_projects works
This repository is a small collection of standalone Python examples, not one integrated application. It includes two print-based demos, a MySQL-to-CSV extraction script, and an Airflow DAG that submits a Spark step to EMR. The scripts have no documented links to one another; the graph shows only relationships visible in their source. The EMR job script is referenced by an S3 URI but is not present in the file tree.
Main entry points: extract_mysql.py MySQL extractor · Airflow_DAG_Bash_Operator.py EMR submit task
Components 10
Other components
- Greeting demo
Downloads/demo.py - Sum example
Downloads/example.py - Greeting demo
OneDrive/Documents/demo.py - MySQL extractor
OneDrive/Documents/extract_mysql.py - Sales database
- Orders CSV
- Airflow scheduler
- EMR submit task
OneDrive/Documents/Airflow_DAG_Bash_Operator.py - AWS EMR
- S3 Spark script
Connections 5
- MySQL extractor → Sales database: reads orders
OneDrive/Documents/extract_mysql.py - MySQL extractor → Orders CSV: writes CSV
OneDrive/Documents/extract_mysql.py - Airflow scheduler → EMR submit task: schedules daily
OneDrive/Documents/Airflow_DAG_Bash_Operator.py - EMR submit task → AWS EMR: submits step
OneDrive/Documents/Airflow_DAG_Bash_Operator.py - AWS EMR → S3 Spark script: runs script