@@ -7,7 +7,7 @@ A utility that persists state of a data pipeline execution and uses them to dete
77## Usage
88
99```
10- $ python mcd.py [options] {db-connection-string} <command> [command-parameters]
10+ $ python -m mcd [options] {db-connection-string} <command> [command-parameters]
1111```
1212
1313- ` options ` include:
@@ -34,8 +34,8 @@ $ python mcd.py [options] {db-connection-string} <command> [command-parameters]
3434To get help, use:
3535
3636```
37- $ python mcd.py --help
38- $ python mcd.py <command> --help
37+ $ python -m mcd --help
38+ $ python -m mcd <command> --help
3939```
4040
4141### Usage Example
@@ -44,18 +44,18 @@ $ python mcd.py <command> --help
4444$ pipenv install
4545$ pipenv shell
4646
47- $ python mcd.py postgresql+psycopg2://user:password@host:port/dbname init-execution
47+ $ python -m mcd postgresql+psycopg2://user:password@host:port/dbname init-execution
4848
49- $ python mcd.py postgresql+psycopg2://user:password@host:port/dbname get-last-successful-execution
50- $ python mcd.py postgresql+psycopg2://user:password@host:port/dbname get-execution-last-updated-timestamp id-as-returned-by-get-last-successful-execution-command
49+ $ python -m mcd postgresql+psycopg2://user:password@host:port/dbname get-last-successful-execution
50+ $ python -m mcd postgresql+psycopg2://user:password@host:port/dbname get-execution-last-updated-timestamp id-as-returned-by-get-last-successful-execution-command
5151
52- $ python mcd.py postgresql+psycopg2://user:password@host:port/dbname persist-models id-as-retured-by-init-command load ./relative/path/to/load/models **/*.json
53- $ python mcd.py postgresql+psycopg2://user:password@host:port/dbname compare-models id-as-retured-by-get-last-successful-execution-command id-as-retured-by-init-command load
52+ $ python -m mcd postgresql+psycopg2://user:password@host:port/dbname persist-models id-as-retured-by-init-command load ./relative/path/to/load/models **/*.json
53+ $ python -m mcd postgresql+psycopg2://user:password@host:port/dbname compare-models id-as-retured-by-get-last-successful-execution-command id-as-retured-by-init-command load
5454
55- $ python mcd.py postgresql+psycopg2://user:password@host:port/dbname persist-models id-as-retured-by-init-command transform C:/absolute/path/to/transform/models group1/*.csv ./group2/**/*.sql
56- $ python mcd.py postgresql+psycopg2://user:password@host:port/dbname compare-models id-as-retured-by-get-last-successful-execution-command id-as-retured-by-init-command transform
55+ $ python -m mcd postgresql+psycopg2://user:password@host:port/dbname persist-models id-as-retured-by-init-command transform C:/absolute/path/to/transform/models group1/*.csv ./group2/**/*.sql
56+ $ python -m mcd postgresql+psycopg2://user:password@host:port/dbname compare-models id-as-retured-by-get-last-successful-execution-command id-as-retured-by-init-command transform
5757
58- $ python mcd.py postgresql+psycopg2://user:password@host:port/dbname complete-execution id-as-retured-by-init-command
58+ $ python -m mcd postgresql+psycopg2://user:password@host:port/dbname complete-execution id-as-retured-by-init-command
5959```
6060
6161## Prerequisites
0 commit comments