Please note: I have not implemented storing ftp files on local disk as this is not mentioned clearly in the assignment and redundant.
- Install dependencies
pip3 install -r requirements.txt
- Export
FTPUSER
,FTPPASS
variables
export FTPUSER = 'ivan_petrovich'
export FTPPASS = 'superseret123'
- Run code:
$ python3 data_pipe.py
-
Verify tables are populated in MySQL
-
Run queries from files
task3.sql
,task4.sql
to complete the Task 3, 4 assignment