diff --git a/client/qldbtools/README.md b/client/qldbtools/README.md index a4e3b5f..ec174f7 100644 --- a/client/qldbtools/README.md +++ b/client/qldbtools/README.md @@ -64,5 +64,9 @@ import qldbtools as ql ./bin/mc-db-refine-info < db-info-1.csv > db-info-2.csv ./bin/mc-db-populate-minio < db-info-2.csv -n 3 + + ./bin/mc-db-view-info < db-info-2.csv + + diff --git a/client/qldbtools/bin/mc-db-view-info b/client/qldbtools/bin/mc-db-view-info new file mode 100755 index 0000000..ffb8648 --- /dev/null +++ b/client/qldbtools/bin/mc-db-view-info @@ -0,0 +1,35 @@ +#!/usr/bin/env python +""" Read a table of CodeQL DB information and display it using pandasui +""" +import argparse +import logging +import sys +# +#* Configure logger +# +logging.basicConfig(level=logging.INFO, format='%(asctime)s %(message)s') +# Overwrite log level set by minio +root_logger = logging.getLogger() +root_logger.setLevel(logging.INFO) + +# +#* Process command line +# +parser = argparse.ArgumentParser( + description="Read a table of CodeQL DB information and display it using pandasui") +args = parser.parse_args() +# +#* Collect the information display +# +import pandas as pd + +df = pd.read_csv(sys.stdin) + +import os +os.environ['APPDATA'] = "needed-for-pandasgui" +from pandasgui import show +show(df) + +# Local Variables: +# python-shell-virtualenv-root: "~/work-gh/mrva/mrvacommander/client/qldbtools/venv/" +# End: