GithubHelp home page GithubHelp logo

etl-weather's Introduction

Weather ETL Pipeline with Airflow DAGs and Snowflake Queries

This repository contains code for an Airflow DAG (Directed Acyclic Graph) named hello_weather, which orchestrates an Extract-Transform-Load (ETL) pipeline to fetch weather data from an API, parse it, and load it into a PostgreSQL database. Additionally, it includes Snowflake queries for setting up the Snowflake Data Warehousing environment and loading data into Snowflake tables. The entire project is containerized using Docker, with Docker volumes used for storing data.

Prerequisites

  • Python 3.x
  • Snowflake
  • Airflow
  • PostgreSQL
  • Docker
  • Docker Compose

Libraries

  • pandas
  • psycopg2

Installation

  1. Clone the repository:

    git clone https://github.com/azharshah95/WeatherPulse.git
  2. Setup .env file:

    Please check the misc.md file.

  3. Python Packages:

    pip install -r requirements.txt
  4. Run Docker Containers:

    To run stack.yml

    docker-compose -f stack.yml up

    To run docker-compose.yaml

    docker-compose up

Code Entry Point

  • ./dags/hello_weather.py
    • This file contains the ETL tasks.
  • ./snowflakeQueries/practiceWeatherData.sql
    • This file contains SnowSQL to Load data into Snowflake warehouse.
  • .code.ipynb
    • This file contains testing try/run code snippets that shall be incorporated later on in the DAG for automation

etl-weather's People

Contributors

azharshah95 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

etl-weather's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.