To install the dependencies, go to the root directory (in csv-etl directory) and run the below command
pip install -r advanced_infra/requirements.txtTo execute the code, run the command as mentioned below from the root directory (in csv-etl directory)
python -m advanced_infra.main --input_csv csv_file_path --chunk_size 100 --db_path transaction.dbfor example if the csv file name is sample.csv and it's location is /home/ubuntu/sample.csv, then run the below command
python -m advanced_infra.main --input_csv /home/ubuntu/sample.csvTo execute the testcases, run the command as mentioned below from the root directory (in csv-etl directory)
pytest advanced_infra/tests.pyI have provided a sample csv file (sample_transactions.csv) in the root directory for your reference