kavisek / demo-argparse-pipeline

This is a data pipeline that uses argparse, pandas, google-cloud, aws, azure, panadas.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

demo-argparse-pipeline

This repo is a sample pipeline using argparse to parse command line arguments. The pipeline has a base config that your can find at ./config.yaml. The pipeline can run with the default config using the following command.

poetry install
poetry run python3 main.py

The pipeline config can be overwritten at run time using the following command.

poetry run python main.py --env dev --author setsuna

The heirachary of config is as follows.

base config -> env config -> command line args

The pipeline will use the command line args to overwrite the env config, and the env config will overwrite the base config.

A great a pattern for any pipeline pipeline that will work for multiple environments.

References

About

This is a data pipeline that uses argparse, pandas, google-cloud, aws, azure, panadas.

License:MIT License


Languages

Language:Python 87.6%Language:Makefile 12.4%