def part_search(self, part_query):
limit = <NUM_LIT:100><EOL>results = self._e.parts_search(q=part_query,<EOL>limit=limit)<EOL>start = <NUM_LIT:0><EOL>hits = results[<NUM_LIT:0>]['<STR_LIT>']<EOL>if hits == <NUM_LIT:0>:<EOL><INDENT>print("<STR_LIT>")<EOL>return ReturnValues.NO_RESULTS<EOL><DEDENT>print("<STR_LIT>".format(results[<NUM_LIT:0>]['<STR_LIT>']['<STR_LIT:q>']))<EOL>def show_result(r):<EOL><INDENT>print('<STR_LIT>'.format(<EOL>r['<STR_LIT>']['<STR_LIT>'], r['<STR_LIT>']['<STR_LIT>']['<STR_LIT:name>'], r['<STR_LIT>']<EOL>))<EOL><DEDENT>for r in results[<NUM_LIT:1>]:<EOL><INDENT>show_result(r)<EOL><DEDENT>while hits - limit > limit:<EOL><INDENT>start += limit<EOL>hits -= limit<EOL>results = self._e.parts_search(q=part_query, limit=limit,<EOL>start=start)<EOL>for r in results[<NUM_LIT:1>]:<EOL><INDENT>show_result(r)<EOL><DEDENT><DEDENT>if hits-limit > <NUM_LIT:0>:<EOL><INDENT>start += limit<EOL>hits -= limit<EOL>results = self._e.parts_search(q=part_query,<EOL>limit=hits,<EOL>start=start)<EOL>for r in results[<NUM_LIT:1>]:<EOL><INDENT>show_result(r)<EOL><DEDENT><DEDENT>return ReturnValues.OK<EOL>
handles the part lookup/search for the given part query

part_query: part string to search as product name

outputs result on stdout