def build_application(server):
 log.info('building web application')
 api = ModbusApiWebApp(server)
 register = Bottle()
 register_api_routes(api, register)
 register_web_routes(api, register)
 return register

def build_application ( server ) : log . info ( 'building web application' ) api = ModbusApiWebApp ( server ) register = Bottle ( ) register_api_routes ( api , register ) register_web_routes ( api , register ) return register
helper method to create and initiailze a bottle application .