Пример #1
0
def main():
    parser = InputParser()
    arguments = parser.parse(sys.argv[1:])

    output = OutputHelper(arguments)

    output.print_banner()

    pool = Pool(arguments.threads, build_queue(arguments, output), arguments.timeout, output)
    pool.run()
Пример #2
0
def main():
    parser = InputParser()
    arguments = parser.parse(argv[1:])
    output = OutputHelper(arguments)

    output.print_banner()

    if arguments.repeat:
        repeat = int(arguments.repeat)
    else:
        repeat = 1

    pool = Pool(arguments.threads, build_queue(arguments, output, repeat),
                arguments.timeout, output, arguments.sober)
    pool.run()
Пример #3
0
def main():
    parser = InputParser()
    arguments = parser.parse(argv[1:])
    output = OutputHelper(arguments)

    output.print_banner()

    if arguments.repeat:
        repeat = int(arguments.repeat)
    else:
        repeat = 1

    pool = Pool(
        arguments.threads,
        task_queue_generator_func(arguments, output, repeat),
        arguments.timeout,
        output,
        arguments.sober,
        silent=arguments.silent,
    )
    pool.run()