Giter Club home page Giter Club logo

acetl's Introduction

acetl

Another CSV Extract-Transform-Load Application!

Technical details

  • Python: 3.10.13
  • database: Postgres

Usage example (Locally)

Assuming you have cloned the repository, use the docker-compose to launch a database instance:

docker compose up

Generate some dummy data using etl cli app

python cli.py --help 
python cli.py generate-dummy-data

Use the cli application to do ETL

python cli.py etl-single-file data/retail_data_medium.csv
python cli.py etl-multiple-files /data

Note: make sure to install these dependencies if you are working locally (linux)

#for postgres psycopg2 driver
apt update && apt install -y build-essential libpq-dev

You can run the web application and check it at http://localhost:8000/docs

python main.py

Kubernetes Architecture Diagram

Alt Text

Done

  • ETL “Extract – Transform – Load” pipeline that ingests 1 or multiple CSV files into a Database
  • A simple REST API that exposes the recently ingested data: •Description: Returns the first 10 lines from Database •Request: Get /read/first-chunck •Response: 200 OK •Response Body: JSON •Response Body Description: A list of 10 JSON objects

TODO

  • update and improve docstrings
  • improve logging/tracing
  • add github actions pipeline for tests
  • improve Kubernetes Architecture Diagram

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.