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

Function start

remi/server.py:948–961  ·  view source on GitHub ↗

This method starts the webserver with a specific App subclass.

(main_gui_class, **kwargs)

Source from the content-addressed store, hash-verified

946
947
948def start(main_gui_class, **kwargs):
949 """This method starts the webserver with a specific App subclass."""
950 debug = True if sys.flags.debug else kwargs.pop('debug', False)
951 standalone = kwargs.pop('standalone', False)
952
953 logging.basicConfig(level=logging.DEBUG if debug else logging.INFO,
954 format='%(name)-16s %(levelname)-8s %(message)s')
955 logging.getLogger('remi').setLevel(
956 level=logging.DEBUG if debug else logging.INFO)
957
958 if standalone:
959 s = StandaloneServer(main_gui_class, start=True, **kwargs)
960 else:
961 s = Server(main_gui_class, start=True, **kwargs)
962

Callers 15

__main__.pyFile · 0.90
editor.pyFile · 0.90
minefield_app.pyFile · 0.90
template_app.pyFile · 0.90
matplotlib_app.pyFile · 0.90
grid_layout_app.pyFile · 0.90
closeable_app.pyFile · 0.90
session_app.pyFile · 0.90
layout_app.pyFile · 0.90

Calls 3

StandaloneServerClass · 0.85
ServerClass · 0.85
popMethod · 0.80

Tested by

no test coverage detected