@click.command('<STR_LIT>', short_help='<STR_LIT>')<EOL>@click.option('<STR_LIT>', '<STR_LIT>', help='<STR_LIT>')<EOL>@click.option('<STR_LIT>', '<STR_LIT>', help='<STR_LIT>')<EOL>@click.pass_context<EOL>def hpo(context, term, description):
LOG.info("<STR_LIT>")<EOL>adapter = context.obj['<STR_LIT>']<EOL>if term:<EOL><INDENT>term = term.upper()<EOL>if not term.startswith('<STR_LIT>'):<EOL><INDENT>while len(term) < <NUM_LIT:7>:<EOL><INDENT>term = '<STR_LIT:0>' + term<EOL><DEDENT>term = '<STR_LIT>' + term<EOL><DEDENT>LOG.info("<STR_LIT>", term)<EOL>hpo_terms = adapter.hpo_terms(hpo_term=term)<EOL><DEDENT>elif description:<EOL><INDENT>sorted_terms = sorted(adapter.hpo_terms(query=description), key=itemgetter('<STR_LIT>'))<EOL>for term in sorted_terms:<EOL><INDENT>term.pop('<STR_LIT>')<EOL>print("<STR_LIT>".format(term['<STR_LIT>'], term['<STR_LIT:description>'], term['<STR_LIT>']))<EOL><DEDENT>context.abort()<EOL><DEDENT>else:<EOL><INDENT>hpo_terms = adapter.hpo_terms()<EOL><DEDENT>if hpo_terms.count() == <NUM_LIT:0>:<EOL><INDENT>LOG.warning("<STR_LIT>")<EOL>return<EOL><DEDENT>click.echo("<STR_LIT>")<EOL>for hpo_obj in hpo_terms:<EOL><INDENT>click.echo("<STR_LIT>".format(<EOL>hpo_obj['<STR_LIT>'],<EOL>hpo_obj['<STR_LIT:description>'],<EOL>len(hpo_obj.get('<STR_LIT>',[]))<EOL>))<EOL><DEDENT>
Show all hpo terms in the database