5
The py-lib contains some scripts, most of which are
6
small ones (apart from ``py.test``) that help during
7
the python development process. If working
8
from a svn-checkout of py lib you may add ``py/bin``
9
to your shell ``PATH`` which should make the scripts
10
available on your command prompt.
15
The ``py.test`` executable is the main entry point into the py-lib testing tool,
16
see the `py.test documentation`_.
18
.. _`py.test documentation`: test.html
23
Usage: ``py.cleanup [PATH]``
25
Delete pyc file recursively, starting from ``PATH`` (which defaults to the
26
current working directory). Don't follow links and don't recurse into
27
directories with a ".".
33
Usage: ``py.countloc [PATHS]``
35
Count (non-empty) lines of python code and number of python files recursively
36
starting from a ``PATHS`` given on the command line (starting from the current
37
working directory). Distinguish between test files and normal ones and report
43
Usage: ``py.lookup SEARCH_STRING [options]``
45
Looks recursively at Python files for a ``SEARCH_STRING``, starting from the
46
present working directory. Prints the line, with the filename and line-number
52
Usage: ``py.rest [PATHS] [options]``
54
Loot recursively for .txt files starting from ``PATHS`` and convert them to
55
html using docutils (or to pdf files, if the --pdf option is used).
57
``py.rest`` has some extra features over rst2html (which is shipped with
58
docutils). Most of these are still experimental, the one which is most likely
59
not going to change is the `graphviz`_ directive. With that you can embed .dot
60
files into your document and have them be converted to png (when outputting
61
html) and to eps (when outputting pdf). Otherwise the directive works mostly
62
like the image directive::
64
.. graphviz:: example.dot
67
.. _`graphviz`: http://www.graphviz.org