/group2-se-homeworks

Python scripts for creating Smart Summaries for CSV files by translating a lua system to python.

Primary LanguagePythonMIT LicenseMIT

Intro page

Smart Summaries

License Python 3.8 Build Travis Repo size Contributors

Python scripts for creating Smart Summaries for CSV files by translating a lua system to python.

Table of Contents

  1. Background
  2. Getting started
  3. File and function mapping
  4. License
  5. Contributors

Background

Lua is a powerful programming language with several salient features like:

  • Lightweight : Because of the small number of core libraries required
  • Fast : As it is mapped to C in many ways, the execution of Lua codes are very fast
  • Flexible : Lua is a very versatile programming language as well

Lua has been in use in several prominent sites on the internet such as alibaba.com and roblox.

This repo aims to convert a sample code in Lua to Python, preserving the core logic of the code.

Getting Started

Pre-requisites

Ensure python is installed. You can check the version of python in the system using:

python --version

Check if pip is installed. This can be done with the command:

pip --version

The csv file can be accessed in the Data folder

Installation

Clone this repository using

git clone https://github.com/jayrajmulani/group2-se-homeworks.git

You can download all the dependencies required to run the file using:

pip install -r requirements.txt

File and function mapping

The implementations for Num, Sym, Cols, Row and Data classes are done in this repo.

The scripts for test cases the, sym, num, bignum, eg.csv, eg.data and eg.stats are also prepared here. A custom test engine has also been developed to run the test cases.

The Lua classes and corresponding python implementation scripts are listed below:

Class Corresponding python script
Num Num
Sym Sym
Cols Cols
Row Row
Data Data

License

This project is licensed under MIT.

Further details regarding the license can be found here.

Contributors