MCPcopy Index your code
hub / github.com/rawpython/remi / __init__

Method __init__

remi/server.py:818–853  ·  view source on GitHub ↗
(self, gui_class, title='', start=True, address='127.0.0.1', port=0, username=None, password=None,
                 multiple_instance=False, enable_file_cache=True, update_interval=0.1, start_browser=True,
                 websocket_timeout_timer_ms=1000, pending_messages_queue_length=1000, 
                 certfile=None, keyfile=None, ssl_version=None,  userdata=())

Source from the content-addressed store, hash-verified

816class Server(object):
817 # noinspection PyShadowingNames
818 def __init__(self, gui_class, title='', start=True, address='127.0.0.1', port=0, username=None, password=None,
819 multiple_instance=False, enable_file_cache=True, update_interval=0.1, start_browser=True,
820 websocket_timeout_timer_ms=1000, pending_messages_queue_length=1000,
821 certfile=None, keyfile=None, ssl_version=None, userdata=()):
822
823 self._gui = gui_class
824 self._title = title or gui_class.__name__
825 self._sserver = None
826 self._sth = None
827 self._base_address = ''
828 self._address = address
829 self._sport = port
830 self._multiple_instance = multiple_instance
831 self._enable_file_cache = enable_file_cache
832 self._update_interval = update_interval
833 self._start_browser = start_browser
834 self._websocket_timeout_timer_ms = websocket_timeout_timer_ms
835 self._pending_messages_queue_length = pending_messages_queue_length
836 self._certfile = certfile
837 self._keyfile = keyfile
838 self._ssl_version = ssl_version
839 self._userdata = userdata
840 if username and password:
841 self._auth = base64.b64encode(encode_text("%s:%s" % (username, password)))
842 else:
843 self._auth = None
844
845 if not isinstance(userdata, tuple):
846 raise ValueError('userdata must be a tuple')
847
848 self._log = logging.getLogger('remi.server')
849 self._alive = True
850 if start:
851 self._myid = threading.Thread.ident
852 self.start()
853 self.serve_forever()
854
855 @property
856 def title(self):

Callers

nothing calls this directly

Calls 3

startMethod · 0.95
serve_foreverMethod · 0.95
encode_textFunction · 0.85

Tested by

no test coverage detected