5
This is a collection of packages and scripts to access darkstat API from
7
The "darkstat" subdirectory contains the main API package. The file
8
setup.py is Python Distutils setup script. Run "python setup.py --help" to
9
get help. The file total-bytes.py is just an example script that show how
11
The file dstat-wait.py is a real script that uses the API; it
12
periodically asks darkstat about total number of bytes passed and waits
13
until the number gets increased by a given amount, then stop. It can be
14
used, for example, in a script like that:
16
# /etc/rc.d/firewall open
17
# /usr/local/sbin/dstat-wait.py localhost 8080 10M
18
# /etc/rc.d/firewall close
22
http://purl.org/net/darkstat
26
There is a simple Makefile for those who prefer to run "make install".
27
The real work is done by Python Distutils. You can run
28
"python setup.py install" by yourself.
32
Oleg Broytmann <phd@phd.pp.ru>