Skip to content

JamesLinus/doan

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

doan - Simple library for analytics

Examples

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]))

About

Simple library for analytics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.4%
  • Makefile 1.6%