1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
<meta content="text/html;charset=ISO-8859-1" name="Content-Type"/>
6
<link href="style.css" media="screen" rel="stylesheet" type="text/css"/></head>
9
<div><a href="http://pylib.org"><img alt="py lib" height="57" id="pyimg" src="http://codespeak.net/img/pylib.png" width="77"/></a></div>
12
<div><a class="menu" href="announce/release-1.2.1.html">1.2.1 ANN</a></div></div>
14
<div><a class="menu" href="install.html">INSTALL</a></div></div>
16
<div><a class="menu" href="contact.html">CONTACT</a></div></div>
18
<div><a class="menu" href="changelog.html">CHANGELOG</a></div></div>
20
<div><a class="menu" href="faq.html">FAQ</a></div></div>
24
<div><a class="menu" href="test/index.html">Index</a></div>
25
<div><a class="menu" href="test/quickstart.html">Quickstart</a></div>
26
<div><a class="menu" href="test/features.html">Features</a></div>
27
<div><a class="menu" href="test/plugin/index.html">Plugins</a></div>
28
<div><a class="menu" href="test/funcargs.html">Funcargs</a></div>
29
<div><a class="menu" href="test/customize.html">Customize</a></div>
30
<div><a class="menu" href="test/talks.html">Tutorials</a></div></div></div>
33
<h3>supporting APIs:</h3>
34
<div><a class="menu" href="index.html">Index</a></div>
35
<div><a class="menu" href="path.html">py.path</a></div>
36
<div><a class="menu" href="code.html">py.code</a></div></div></div></div></div>
37
<div id="contentspace">
38
<div class="document" id="pylib-scripts">
39
<h1 class="title">pylib scripts</h1>
41
<p>The pylib installs several scripts to support testing and (python)
42
development. If working from a checkout you may also add <tt class="docutils literal">bin</tt> to
43
your <tt class="docutils literal">PATH</tt> environment variable which makes the scripts available on
44
your shell prompt.</p>
45
<div class="section" id="py-test-and-py-test-version">
46
<h1><tt class="docutils literal">py.test</tt> and <tt class="docutils literal"><span class="pre">py.test-$VERSION</span></tt></h1>
47
<p>The <tt class="docutils literal">py.test</tt> executable is the main tool that the py lib offers;
48
in fact most code in the py lib is geared towards supporting the
49
testing process. See the <a class="reference external" href="test/index.html">py.test documentation</a> for extensive
50
documentation. The <tt class="docutils literal"><span class="pre">py.test-$VERSION</span></tt> is the same script with
51
an interpreter specific suffix appended to make
52
several versions of py.test for using specific interpreters
55
<li>CPython2.4: py.test-2.4</li>
56
<li>CPython2.5: py.test-2.5</li>
58
<li>CPython3.1: py.test-3.1</li>
59
<li>Jython-2.5.1: py.test-jython</li>
60
<li>pypy-$SUFFIX: py.test-pypy-$SUFFIX</li>
63
<div class="section" id="py-which-and-py-which-version">
64
<h1><tt class="docutils literal">py.which</tt> and <tt class="docutils literal"><span class="pre">py.which-$VERSION</span></tt></h1>
65
<p>Usage: <tt class="docutils literal">py.which modulename</tt></p>
66
<p>Print the <tt class="docutils literal">__file__</tt> of the module that is imported via <tt class="docutils literal">import modulename</tt>.
67
The version-suffix is the same as with <tt class="docutils literal">py.test</tt> above.</p>
69
<div class="section" id="py-cleanup">
70
<h1><tt class="docutils literal">py.cleanup</tt></h1>
71
<p>Usage: <tt class="docutils literal">py.cleanup [PATH]</tt></p>
72
<p>Delete pyc file recursively, starting from <tt class="docutils literal">PATH</tt> (which defaults to the
73
current working directory). Don't follow links and don't recurse into
74
directories with a ".".</p>
76
<div class="section" id="py-countloc">
77
<h1><tt class="docutils literal">py.countloc</tt></h1>
78
<p>Usage: <tt class="docutils literal">py.countloc [PATHS]</tt></p>
79
<p>Count (non-empty) lines of python code and number of python files recursively
80
starting from a <tt class="docutils literal">PATHS</tt> given on the command line (starting from the current
81
working directory). Distinguish between test files and normal ones and report
84
<div class="section" id="py-lookup">
85
<h1><tt class="docutils literal">py.lookup</tt></h1>
86
<p>Usage: <tt class="docutils literal">py.lookup SEARCH_STRING [options]</tt></p>
87
<p>Looks recursively at Python files for a <tt class="docutils literal">SEARCH_STRING</tt>, starting from the
88
present working directory. Prints the line, with the filename and line-number
93
<script type="text/javascript">
94
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
95
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
97
<script type="text/javascript">
99
var pageTracker = _gat._getTracker("UA-7597274-3");
100
pageTracker._trackPageview();
101
} catch(err) {}</script>
b'\\ No newline at end of file'