|
|
@ -4,8 +4,8 @@ import logging |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@click.command() |
|
|
|
@click.command() |
|
|
|
@click.argument('input_filepath', type=str) |
|
|
|
@click.argument('input_filepath', type=click.Path(exists=True)) |
|
|
|
@click.argument('output_filepath', type=str) |
|
|
|
@click.argument('output_filepath', type=click.Path()) |
|
|
|
def main(input_filepath, output_filepath): |
|
|
|
def main(input_filepath, output_filepath): |
|
|
|
logger = logging.getLogger(__name__) |
|
|
|
logger = logging.getLogger(__name__) |
|
|
|
logger.info('making final data set from raw data') |
|
|
|
logger.info('making final data set from raw data') |
|
|
@ -15,5 +15,9 @@ if __name__ == '__main__': |
|
|
|
log_fmt = '%(asctime)s - %(name)s - %(levelname)s - %(message)s' |
|
|
|
log_fmt = '%(asctime)s - %(name)s - %(levelname)s - %(message)s' |
|
|
|
logging.basicConfig(level=logging.INFO, format=log_fmt) |
|
|
|
logging.basicConfig(level=logging.INFO, format=log_fmt) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
project_dir = os.path.join(os.path.dirname(__file__), os.pardir) |
|
|
|
|
|
|
|
dotenv_path = os.path.join(project_dir, '.env') |
|
|
|
|
|
|
|
dotenv.load_dotenv(dotenv_path) |
|
|
|
|
|
|
|
|
|
|
|
main() |
|
|
|
main() |
|
|
|
|
|
|
|
|
|
|
|