nodes: 0, module; 1, function_definition; 2, function_name:list; 3, parameters; 4, block; 5, identifier:self; 6, default_parameter; 7, default_parameter; 8, default_parameter; 9, default_parameter; 10, default_parameter; 11, default_parameter; 12, expression_statement; 13, expression_statement; 14, if_statement; 15, expression_statement; 16, return_statement; 17, identifier:includes; 18, None; 19, identifier:doc_type; 20, None; 21, identifier:promulgated_only; 22, False; 23, identifier:sort; 24, None; 25, identifier:owner; 26, None; 27, identifier:series; 28, None; 29, string; 30, assignment; 31, call; 32, block; 33, else_clause; 34, assignment; 35, subscript; 36, string_content:List entities in the charmstore.
  
          @param includes What metadata to return in results (e.g. charm-config).
          @param doc_type Filter to this type: bundle or charm.
          @param promulgated_only Whether to filter to only promulgated charms.
          @param sort Sorting the result based on the sort string provided
              which can be name, author, series and - in front for descending.
          @param owner Optional owner. If provided, search results will only
              include entities that owner can view.
          @param series The series to filter; can be a list of series or a
              single series.; 37, identifier:queries; 38, call; 39, identifier:len; 40, argument_list; 41, expression_statement; 42, block; 43, identifier:data; 44, call; 45, call; 46, string; 47, attribute; 48, argument_list; 49, identifier:queries; 50, assignment; 51, expression_statement; 52, attribute; 53, argument_list; 54, attribute; 55, argument_list; 56, string_content:Results; 57, identifier:self; 58, identifier:_common_query_parameters; 59, identifier:doc_type; 60, identifier:includes; 61, identifier:owner; 62, identifier:promulgated_only; 63, identifier:series; 64, identifier:sort; 65, identifier:url; 66, call; 67, assignment; 68, identifier:self; 69, identifier:_get; 70, identifier:url; 71, identifier:data; 72, identifier:json; 73, attribute; 74, argument_list; 75, identifier:url; 76, call; 77, string; 78, identifier:format; 79, attribute; 80, call; 81, attribute; 82, argument_list; 83, string_content:{}/list?{}; 84, identifier:self; 85, identifier:url; 86, identifier:urlencode; 87, argument_list; 88, string; 89, identifier:format; 90, attribute; 91, identifier:queries; 92, string_content:{}/list; 93, identifier:self; 94, identifier:url
code: def list(self, includes=None, doc_type=None, promulgated_only=False,
               sort=None, owner=None, series=None):
          '''
          List entities in the charmstore.
  
          @param includes What metadata to return in results (e.g. charm-config).
          @param doc_type Filter to this type: bundle or charm.
          @param promulgated_only Whether to filter to only promulgated charms.
          @param sort Sorting the result based on the sort string provided
              which can be name, author, series and - in front for descending.
          @param owner Optional owner. If provided, search results will only
              include entities that owner can view.
          @param series The series to filter; can be a list of series or a
              single series.
          '''
          queries = self._common_query_parameters(doc_type, includes, owner,
                                                  promulgated_only, series, sort)
          if len(queries):
              url = '{}/list?{}'.format(self.url, urlencode(queries))
          else:
              url = '{}/list'.format(self.url)
          data = self._get(url)
          return data.json()['Results']