See Internal Details and Implementation for more information about the implementation of each component.
While stl may have more traditional Python packaging in the future, given the current state of development and organization, to begin using STL you should simply add the four constituent files to the same folder in you shell’s search path, by adding one of the following lines to your ~/.bashrc, ~/.bash_profile, or ~/.zshrc (or similar) file:
PATH=$PATH:~/bin
PATH=$PATH:~/scripts
PATH=$PATH:/opt/bin
Then, copy the files in the stl/ directory in the stl repository to this directory. You can issue the following sequence of commands at your system prompt to download the files hosted on github:
curl http://raw.github.com/cyborginstitute/stl/master/stl.py > stl.py
curl http://raw.github.com/cyborginstitute/stl/master/lnote.py > lnote.py
curl http://raw.github.com/cyborginstitute/stl/master/wc_track.py > wc_track.py
curl http://raw.github.com/cyborginstitute/stl/master/sauron.py > sauron.py
Then create symlinks in this directory for easy use without the .py extension, with the following commands. Replace ~/scripts with the path to your personal script directory:
cd ~/scripts
ln -s stl stl.py
ln -s lnote lnote.py
ln -s wc-track wc_track.py
ln -s sauron sauron.py
Continue reading the manual pages pages the internals section for more information about the use and implementation of stl.
See
stl consists of three connected Python modules/scripts that you may use either independently or in conjunction. From the highest level, these programs are:
The projects dict in the wc_track file, provides a way to pre-configure wc_track as a wrapper around stl. Consider the following basic setup:
username = tychoish
projects = {
'stl' : {
'path' : '/home/' + username + '/projects/stl/docs/source/',
'target' : 'projects',
'emacs' : True,
'quiet' : True,
'log' : '/home/' + username + '/projects/stats-' + socket.gethostname() + '.log',
'ext': 'txt'
},
}
See wc-track Manual and wc_track Internals for more information.