There is a file with numbers, let’s try to calculate its mean.
from doan import *
print(mean(r_num('/tmp/example-file')))
If we want to get more information about list then call stat.
from doan import r_num, stat
print(stat(r_num('/tmp/example-file')))
Can work with ssh and shell.
from doan import cmd, r_num, percentiles
print(percentiles(r_num(cmd("awk '{print $1 - 1}' /tmp/example-file")), [0.95]))
from doan import ssh, r_num, percentiles
print(percentiles(r_num(ssh('log')('echo "1\n2\n3\n" > /tmp/example-file')), [0.95]))