Python scripts for creating Smart Summaries for CSV files by translating a lua system to python.
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.
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
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
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 |
This project is licensed under MIT.
Further details regarding the license can be found here.