Kuy is word I gave to python, the worst language in the world. (PHP is better)
I write this statement because I fuck with python and airflow half a day.
- create
service-accountsfolder atairflow-workflows/and place credentials file here
mkdir airflow-workflows/service-accounts
touch airflow-workflows/service-accounts/dsde-458712-ec9f91c0cc0c.json(filename strict case)
- go to
airflow-workflows/and docker compose
docker compose up --buildNote: make sure your docker set CPU to more than 2 cores and 4GB of RAM
- Enjoy Fucking shit airflow
Path: data_eng/traffy_fondue
Files:
queryclient.pyis big query setup file it need credentials file to authimport_csv.pyis for import data in csv (bangkok_traffy.csv) from DSDE to big query (also create a schema)fetch_new_traffy.pyis for fetch new data from traffy fondue API
Path: data_eng/weather_history
Files:
queryclient.pyis big query setup file it need credentials file to authfetch_weather_history.pyis for fetch new data from weather api
**It may not run with standalone file please trigger in airflow because of shit python language