class_docstr: Run ZAP authentication in a background thread
class_docstr_tok: ["Run","ZAP","authentication","in","a","background","thread"]
code: def __init__(self, context=None, encoding="utf-8", log=None):
      self.context = context or zmq.Context.instance()
      self.log = log
      self.encoding = encoding
      self.pipe = None
      self.pipe_endpoint = "inproc://{0}.inproc".format(id(self))
      self.thread = None
  
imports: import time
  import logging
  from threading import Thread, Event
  import zmq
  from zmq.utils import jsonapi
  from zmq.utils.strtypes import bytes, unicode, b, u
  import sys
  from .base import Authenticator
label_desc: Use image node_id 1 to create a new ThreadAuthenticator object from inherited base classes: object with example: obj = ThreadAuthenticator(context, encoding, log)