pyrival.tools

pyrival.tools.interactive_runner

class pyrival.tools.interactive_runner.PrefixedStream(stream, prefix)

Bases: io.IOBase

close()

Flush and close the IO object.

This method has no effect if the file is already closed.

write(b)
pyrival.tools.interactive_runner.async_main(argv=None)
pyrival.tools.interactive_runner.main(argv=None)
pyrival.tools.interactive_runner.show_exit_code(process, prefix)
pyrival.tools.interactive_runner.tee(in_stream, out_streams)

pyrival.tools.stress_tester

pyrival.tools.stress_tester.cmd2func(args)
pyrival.tools.stress_tester.func2judge(sol)
pyrival.tools.stress_tester.stress_tester(tests, solution, judge=None, catch_all=False)