def run_zserver_graph(arg): if arg.scenario == 's': path = _base_path + 'graphtest.pkl' else: path = _base_path + 'graphtest_full.pkl' instructions = GraphFile(file_path=path, lim=arg.lim) server = ZBuilder() server.run(instructions)
from src.server import run run()
def run_zserver(): path = _base_path + 'comms.json' instructions = CommandFile(path) server = ZBuilder() server.run(instructions)
from src import schema from src import server if __name__ == '__main__': server.run("localhost", 7066)
# TODO(#2): pixiv api broke if __name__ == '__main__': from src.utils import timecode_convert from src.chat import ChatThread import src.server as server import src.config as g g.sr_max_song_duration = timecode_convert(g.sr_max_song_duration) g.sr_user_cooldown = timecode_convert(g.sr_user_cooldown) ChatThread('chat').start() server.run()
""" Main Module, this run the app """ # Export Data from src import server # Configuration from src.config import server as server_conf, broker if __name__ == '__main__': print('broker - ', broker) server.run( host=server_conf.get('host'), port=server_conf.get('port'), debug=server_conf.get('debug'), )