docstr: Connects to a running server.
  
  The class constructor takes a server address which is then used to
  connect for all subsequent member APIs.
  
  Parameters
  ----------
  endpoint : str, optional
      The server URL.
  
  query_timeout : float, optional
      The timeout for query operations.
docstr_tok: ["Connects","to","a","running","server",".","The","class","constructor","takes","a","server","address","which","is","then","used","to","connect","for","all","subsequent","member","APIs",".","Parameters","--","--","--","--","--","endpoint",":","str",",","optional","The","server","URL",".","query_timeout",":","float",",","optional","The","timeout","for","query","operations","."]
code: def __init__(self, endpoint, query_timeout=1000):
      """
      Connects to a running server.
  
      The class constructor takes a server address which is then used to
      connect for all subsequent member APIs.
  
      Parameters
      ----------
      endpoint : str, optional
          The server URL.
  
      query_timeout : float, optional
          The timeout for query operations.
      """
      _check_hostname(endpoint)
  
      self._endpoint = endpoint
  
      session = requests.session()
      session.verify = False
      requests.packages.urllib3.disable_warnings()
  
      # Setup the communications layer.
      network_wrapper = RequestsNetworkWrapper(session)
      service_client = ServiceClient(self._endpoint, network_wrapper)
  
      self._service = RESTServiceClient(service_client)
      if not type(query_timeout) in (int, float) or query_timeout <= 0:
          query_timeout = 0.0
      self._service.query_timeout = query_timeout
  
imports: import copy
  from re import compile
  import time
  import requests
  from .rest import RequestsNetworkWrapper, ServiceClient
  from .rest_client import RESTServiceClient, Endpoint
  from .custom_query_object import CustomQueryObject
  import os
  import logging
label_desc: Use image node_id 1 to create a new Client object  with example: obj = Client(endpoint, query_timeout)