diff --git a/README.md b/README.md index b279cf2..217084d 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ data-management ├─ general_function.py # All customize general code function to import in run_extract_load.py ├─ README.md # Project guide ├─ requirements.txt # Install needed library -└─ run_extract_load.py # Main code to run the extract load process +└─ main.py # Main code to run the extract load process ``` diff --git a/exchange/extract/exchange_extract_function.py b/exchange/extract/exchange_extract_function.py index 2a1fdd1..7fd28e8 100644 --- a/exchange/extract/exchange_extract_function.py +++ b/exchange/extract/exchange_extract_function.py @@ -1,4 +1,3 @@ -import json import csv from operator import concat import mysql.connector diff --git a/exchange/load/exchange_load_function.py b/exchange/load/exchange_load_function.py index 09ff08f..fa57e23 100644 --- a/exchange/load/exchange_load_function.py +++ b/exchange/load/exchange_load_function.py @@ -1,6 +1,4 @@ -import os from google.cloud import storage -import json def login_cloudstorage_credential(credential): try: diff --git a/run_extract_load.py b/main.py similarity index 98% rename from run_extract_load.py rename to main.py index 3e6a0e5..47cc900 100644 --- a/run_extract_load.py +++ b/main.py @@ -1,7 +1,5 @@ -import json import os from os import walk -from operator import concat import general_function import exchange.extract.exchange_extract_function as ex_extract_func import exchange.load.exchange_load_function as ex_load_func diff --git a/requirements.txt b/requirements.txt index 939e2f8..c4ef43b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -mysql_connector_repackaged==0.3.1 +mysql-connector-python==8.0.30 google-cloud-storage==2.5.0