Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Starts a 'main_func' under code reloader.

@param args - function's positional arguments.
@param kargs - function's keyword arguments.
@param before_reload - a function to call before code will be reloaded.
@param before_exit - a function to call if a programm was interrupted by Ctrl+C.
       This is really needed, because the main_func is executed in a child thread,
       but KeyboardInterrupt exception is sent to the main thread.
@param watch_on_files - if True (default), then a separate thread will be
       started to watch on changes in loaded modules' sources.

        def main(
        main_func,
        args=None,
        kwargs=None,
        before_reload=lambda: None,
        before_exit=lambda: None,
        watch_on_files=True,
    ):
    """Starts a 'main_func' under code reloader.

    @param args - function's positional arguments.
    @param kargs - function's keyword arguments.
    @param before_reload - a function to call before code will be reloaded.
    @param before_exit - a function to call if a programm was interrupted by Ctrl+C.
           This is really needed, because the main_func is executed in a child thread,
           but KeyboardInterrupt exception is sent to the main thread.
    @param watch_on_files - if True (default), then a separate thread will be
           started to watch on changes in loaded modules' sources.
    """
    _reloader(main_func, args or (), kwargs or {}, before_reload, before_exit, watch_on_files)
        


src/r/o/rororo-0.1-alpha/rororo/manager.py   rororo(Download)
 
    if autoreload:
        server_reloader.main(run_server, before_reload=before_reload)
    else:
        run_server()