Skip to content

MilonTheDataGuy/data-engineering-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Engineering Challenge

A project demonstrating data engineering tasks using SQLite and Python, including database creation, data population, and querying. Managed with Poetry and includes unit tests for verification.

Table of Contents

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/MilonTheDataGuy/data-engineering-challenge.git
    cd data-engineering-challenge
  2. Install dependencies:

    poetry install

Usage

  1. Run the main script:
    poetry run python src/main.py
    poetry run python src/execute_sql.py
    
    This command will create and populate the SQLite database with ratings data and create the necessary tables.

Running Tests

  1. Run all tests:

    poetry run python -m unittest discover -s tests

    This command will discover and run all test files in the tests directory.

  2. Run a specific test file:

    poetry run python -m unittest tests.unittest_cases

    This command will run the tests/unittest_cases.py file specifically.

Project Structure

data-engineering-challenge/ ├── README.md ├── pyproject.toml ├── poetry.lock ├── data/ │ ├── ratings.db ├── src/ │ ├── init.py │ ├── main.py │ ├── execute_sql.py │ ├── sql/ │ │ ├── create_aggregates_table.sql │ │ ├── create_ratings_table.sql │ │ ├── top_products.sql ├── tests/ │ ├── init.py │ ├── unittest_cases.py

About

A project demonstrating data engineering tasks using SQLite and Python, including database creation, data population, and querying. Managed with Poetry and includes unit tests for verification.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages