def script_example(): import script_wrapper script_as_module = script_wrapper("echo") connection_str = 'librabbitmq://*****:*****@%s:%s//' % ("localhost", "5672") consumer = QPI(script_as_module, connection_str, "intake_queue", "output_queue") consumer.run()
def module_example(): connection_str = 'librabbitmq://*****:*****@%s:%s//' % ("localhost", "5672") consumer = QPI(example_module, connection_str, "intake_queue", "output_queue") consumer.run()