def get_kinds(start=None, end=None):
q = Kind.query()<EOL>if start is not None and start != '<STR_LIT>':<EOL><INDENT>q = q.filter(Kind.key >= Kind.key_for_kind(start))<EOL><DEDENT>if end is not None:<EOL><INDENT>if end == '<STR_LIT>':<EOL><INDENT>return []<EOL><DEDENT>q = q.filter(Kind.key < Kind.key_for_kind(end))<EOL><DEDENT>return [x.kind_name for x in q]<EOL>
Return all kinds in the specified range, for the current namespace.

    Args:
      start: only return kinds >= start if start is not None.
      end: only return kinds < end if end is not None.

    Returns:
      A list of kind names between the (optional) start and end values.