コード例 #1
0
 def __init__(self, client=None):
     if client is None:
         self.client = Client(up.get_token())
     else:
         self.client = client
コード例 #2
0
 def __init__(self, index_config_dict):
     super().__init__(Client(get_token()))
     index_path = index_config_dict['path']
     index_file = index_config_dict['file']
     self.index_filepath = path.join(index_path, index_file)