Skip to content

raybittuiq/csv-etl

Repository files navigation

csv-etl

Install Dependencies

To install the dependencies, go to the root directory (in csv-etl directory) and run the below command

pip install -r advanced_infra/requirements.txt

Execute The Code

To 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.db

for 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.csv

Run The TestCase

To execute the testcases, run the command as mentioned below from the root directory (in csv-etl directory)

 pytest advanced_infra/tests.py

I have provided a sample csv file (sample_transactions.csv) in the root directory for your reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages