def stats(stats_type, **args): """Output general info about project""" stats = Stats() if stats_type == 'overview': stats.overview() elif stats_type == 'all': stats.all() elif stats_type == 'sample': stats.sample() elif stats_type == 'annotation': stats.annotation(**args) elif stats_type == 'annotator_outliers': stats.annotator_outliers(**args) elif stats_type == 'annotation_cleaned': stats.annotation_cleaned(**args) else: raise ValueError('Command {} is not available.'.format(stats_type)) print(stats.text)