<s> import asyncio <EOL> from zeroservices import ZeroMQMedium , ResourceService <EOL> from zeroservices . services import get_http_interface <EOL> from zeroservices . discovery import UdpDiscoveryMedium <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> loop = asyncio . get_event_loop ( ) <EOL> medium = ZeroMQMedium ( loop , UdpDiscoveryMedium ) <EOL> service = ResourceService ( '<STR_LIT>' , medium ) <EOL> application = get_http_interface ( service , loop , port = <NUM_LIT> , allowed_origins = "<STR_LIT:*>" ) <EOL> application = loop . run_until_complete ( application ) <EOL> loop . run_until_complete ( service . start ( ) ) <EOL> loop . run_forever ( ) </s>
