def info(cs, argument): print_colored("INFO", "yellow") seq1 = Seq(argument) response = "Sequence: " + str(argument) + "\nTotal lenght: " + str(seq1.len()) + seq1.percent() print(response) cs.send(response.encode())
def info(sequence): seq1 = Seq(sequence) response = "\nTotal lenght: " + str(seq1.len()) + seq1.percent() context = { "sequence": sequence, "calculation": response } contents = read_template_html_file("./html/option.html").render(context=context) return contents