<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>[bin] </title> <meta content="text/html;charset=ISO-8859-1" name="Content-Type"/> <link href="style.css" media="screen" rel="stylesheet" type="text/css"/></head> <body> <div><a href="http://codespeak.net"><img alt="py lib" height="114" id="pyimg" src="http://codespeak.net/img/pylib.png" width="154"/></a></div> <div id="metaspace"> <div class="project_title">[bin] </div> <div id="menubar"><a class="menu" href="index.html">index</a> <a class="menu" href="../../apigen/api/index.html">api</a> <a class="menu" href="../../apigen/source/index.html">source</a> <a class="menu" href="contact.html">contact</a> <a class="menu" href="download.html">download</a></div></div> <div id="contentspace"> <div id="docinfoline"> <div style="float: right; font-style: italic;"> </div></div> <div class="document" id="py-bin-scripts"> <h1 class="title"><tt class="docutils literal"><span class="pre">py/bin/</span></tt> scripts</h1> <p>The py-lib contains some scripts, most of which are small ones (apart from <tt class="docutils literal"><span class="pre">py.test</span></tt>) that help during the python development process. If working from a svn-checkout of py lib you may add <tt class="docutils literal"><span class="pre">py/bin</span></tt> to your shell <tt class="docutils literal"><span class="pre">PATH</span></tt> which should make the scripts available on your command prompt.</p> <div class="section" id="py-test"> <h1><tt class="docutils literal"><span class="pre">py.test</span></tt></h1> <p>The <tt class="docutils literal"><span class="pre">py.test</span></tt> executable is the main entry point into the py-lib testing tool, see the <a class="reference external" href="test.html">py.test documentation</a>.</p> </div> <div class="section" id="py-cleanup"> <h1><tt class="docutils literal"><span class="pre">py.cleanup</span></tt></h1> <p>Usage: <tt class="docutils literal"><span class="pre">py.cleanup</span> <span class="pre">[PATH]</span></tt></p> <p>Delete pyc file recursively, starting from <tt class="docutils literal"><span class="pre">PATH</span></tt> (which defaults to the current working directory). Don't follow links and don't recurse into directories with a ".".</p> </div> <div class="section" id="py-countloc"> <h1><tt class="docutils literal"><span class="pre">py.countloc</span></tt></h1> <p>Usage: <tt class="docutils literal"><span class="pre">py.countloc</span> <span class="pre">[PATHS]</span></tt></p> <p>Count (non-empty) lines of python code and number of python files recursively starting from a <tt class="docutils literal"><span class="pre">PATHS</span></tt> given on the command line (starting from the current working directory). Distinguish between test files and normal ones and report them separately.</p> </div> <div class="section" id="py-lookup"> <h1><tt class="docutils literal"><span class="pre">py.lookup</span></tt></h1> <p>Usage: <tt class="docutils literal"><span class="pre">py.lookup</span> <span class="pre">SEARCH_STRING</span> <span class="pre">[options]</span></tt></p> <p>Looks recursively at Python files for a <tt class="docutils literal"><span class="pre">SEARCH_STRING</span></tt>, starting from the present working directory. Prints the line, with the filename and line-number prepended.</p> </div> <div class="section" id="py-rest"> <h1><tt class="docutils literal"><span class="pre">py.rest</span></tt></h1> <p>Usage: <tt class="docutils literal"><span class="pre">py.rest</span> <span class="pre">[PATHS]</span> <span class="pre">[options]</span></tt></p> <p>Loot recursively for .txt files starting from <tt class="docutils literal"><span class="pre">PATHS</span></tt> and convert them to html using docutils (or to pdf files, if the --pdf option is used).</p> <p><tt class="docutils literal"><span class="pre">py.rest</span></tt> has some extra features over rst2html (which is shipped with docutils). Most of these are still experimental, the one which is most likely not going to change is the <a class="reference external" href="http://www.graphviz.org">graphviz</a> directive. With that you can embed .dot files into your document and have them be converted to png (when outputting html) and to eps (when outputting pdf). Otherwise the directive works mostly like the image directive:</p> <pre class="literal-block"> .. graphviz:: example.dot :scale: 90 </pre> </div> </div> </div></body></html>