GithubHelp home page GithubHelp logo

faang-serverless-etl's Introduction

Serverless ETL for FAANG Stocks

Serverless ETL for FAANG stocks from Bloomberg API to BigQuery.

Data source: RapidAPI Bloomberg

How to Run (local)

  1. Build a virtual environment.

    python -m venv venv
    source venv/bin/activate
  2. Install the dependencies.

    pip install -r requirements.txt
  3. Initiate environment variables in .env file.

    e.g.:

    export RAPIDAPI_API_KEY=Your_RapidAPI_key
    export BQ_PROJECT_DATASET_TABLE=Your_BQ_table_id
    echo -e \
    "RAPIDAPI_API_KEY=\"$RAPIDAPI_API_KEY\"\nBQ_PROJECT_DATASET_TABLE=\"$BQ_PROJECT_DATASET_TABLE\"" \
    > .env

    Look at .env_sample as environment file reference.

  4. Run the application

    python app.py

    Example output:

    (venv)$ python app.py
    Invoke
    Extracting data from bloomberg api...
    Transforming data from bloomberg api to dataframe...
    6 new record(s) are found
    New rows have been added.
    6 record(s) inserted to BigQuery Table
    
    (venv)$ 
    
  5. Check the BigQuery table and ensure the data successfully loaded.

How to Run (Serverlessly)

Refer to this Medium article to deploy it on GCP.

faang-serverless-etl's People

Contributors

ammfat avatar

Watchers

 avatar

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.