Git Product home page Git Product logo

transloc_api_gcp_pipeline's Introduction

Transport Data Pipeline

Project Description

This project is a data pipeline designed to fetch real-time vehicle data from the TransLoc API and ingest it into Google BigQuery. The pipeline is implemented using Apache Beam, a unified stream and batch processing model. It fetches vehicle data from the API, transforms it, and loads it into BigQuery for further analysis.

Requirements

Before running the pipeline, ensure you have the following dependencies installed:

  • Python 3.x
  • Apache Beam
  • Google Cloud SDK (See installation guide here)
  • Other Python dependencies (install using pip install -r requirements.txt)

Setup

  1. Clone the Repository:

    git clone https://github.com/JonFillip/transloc_api_gcp_pipeline.git
    cd transport-data-pipeline
  2. Install Dependencies

    pip install -r requirements.txt
    
  3. Setup Google Credentials

    • Follow the instructions here to setup
  4. Setup Project, Cloud Storage and BigQuery

    • Ensure that you have a Google Cloud project set with proper permissions given to the admin and service account. See more here
    • Create a BigQuery Table (Sink)
    • Create a Cloud Storage Bucket (Source)
    • Enable Dataflow API
    • Enable Cloud Storage API
    • Enable BigQuery API
  5. Configure the Pipeline Open transloc_streaming_pipeline.py and modify the pipeline options like project ID, region, staging location, etc., according to your Google Cloud project.

  6. Run the Pipeline Run the following command to execute the data pipeline:

    python transloc_streaming_pipeline.py \
    --project your-project-id \
    --region your-region \
    --staging_location gs://your-staging-bucket \
    --temp_location gs://your-temp-bucket \
    --runner DataflowRunner \
    --table_name your-project-id:your-dataset.your-table \
    

Adjust the parameters according to your project details.# transloc_api_gcp_etl

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.