Files
tea/verification/__main__.py
T

26 lines
850 B
Python

"""python -m verification {hk1k|issste} --out processed/usuarios/<name>/tea-verify/
python -m verification mlflow [--uri http://10.0.10.41:5000] [--table features.csv]
Cluster checks of tea. They live outside the package (not in the wheel):
they are for testing only, and run from the tea-verify image (PYTHONPATH=/opt/tea)."""
import sys
def main(argv=None) -> int:
argv = list(sys.argv[1:] if argv is None else argv)
if not argv or argv[0] not in ("hk1k", "issste", "mlflow"):
print(__doc__, file=sys.stderr)
return 2
if argv[0] == "hk1k":
from verification import hk1k as check
elif argv[0] == "issste":
from verification import issste as check
else:
from verification import mlflow_check as check
return check.main(argv[1:])
if __name__ == "__main__":
sys.exit(main())