def set_credentials_file(username=None, api_key=None, stream_ids=None, proxy_username=None, proxy_password=None):
 if (not check_file_permissions()):
  raise exceptions.PlotlyError("You don't have proper file permissions to run this function.")
 ensure_local_plotly_files()
 credentials = get_credentials_file()
 if isinstance(username, six.string_types):
  credentials['username'] = username
 if isinstance(api_key, six.string_types):
  credentials['api_key'] = api_key
 if isinstance(proxy_username, six.string_types):
  credentials['proxy_username'] = proxy_username
 if isinstance(proxy_password, six.string_types):
  credentials['proxy_password'] = proxy_password
 if isinstance(stream_ids, (list, tuple)):
  credentials['stream_ids'] = stream_ids
 utils.save_json_dict(CREDENTIALS_FILE, credentials)
 ensure_local_plotly_files()

def set_credentials_file ( username = None , api_key = None , stream_ids = None , proxy_username = None , proxy_password = None ) : if ( not check_file_permissions ( ) ) : raise exceptions . PlotlyError ( "You don't have proper file permissions to run this function." ) ensure_local_plotly_files ( ) credentials = get_credentials_file ( ) if isinstance ( username , six . string_types ) : credentials [ 'username' ] = username if isinstance ( api_key , six . string_types ) : credentials [ 'api_key' ] = api_key if isinstance ( proxy_username , six . string_types ) : credentials [ 'proxy_username' ] = proxy_username if isinstance ( proxy_password , six . string_types ) : credentials [ 'proxy_password' ] = proxy_password if isinstance ( stream_ids , ( list , tuple ) ) : credentials [ 'stream_ids' ] = stream_ids utils . save_json_dict ( CREDENTIALS_FILE , credentials ) ensure_local_plotly_files ( )
set the keyword-value pairs in ~/ .