py Documentation - Read the Docs
py Documentation - Read the Docs
py Documentation - Read the Docs
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Contents<br />
1 installation info in a nutshell 3<br />
1.1 easy install or pip <strong>py</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3<br />
1.2 Working from version control or a tarball . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3<br />
1.3 activating a checkout with setuptools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4<br />
1.4 Mailing list and issue tracker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4<br />
2 <strong>py</strong>.path 5<br />
2.1 <strong>py</strong>.path.local - local file system path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5<br />
2.2 <strong>py</strong>.path.svnurl and <strong>py</strong>.path.svnwc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9<br />
2.3 Common vs. specific API, Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16<br />
2.4 Known problems / limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18<br />
3 <strong>py</strong>.code: higher level <strong>py</strong>thon code and introspection objects 19<br />
3.1 Contents of <strong>the</strong> library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19<br />
3.2 The wrappers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19<br />
4 <strong>py</strong>.io 25<br />
4.1 IO Capturing examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25<br />
4.2 <strong>py</strong>.io object reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26<br />
5 <strong>py</strong>.log documentation and musings 27<br />
5.1 Foreword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27<br />
5.2 Logging organisation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27<br />
5.3 Using <strong>the</strong> <strong>py</strong>.log library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28<br />
6 <strong>py</strong>.xml: simple <strong>py</strong>thonic xml/html file generation 31<br />
6.1 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31<br />
6.2 a <strong>py</strong>thonic object model , please . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31<br />
7 Miscellaneous features of <strong>the</strong> <strong>py</strong> lib 35<br />
7.1 Mapping <strong>the</strong> standard <strong>py</strong>thon library into <strong>py</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35<br />
7.2 Support for interaction with system utilities/binaries . . . . . . . . . . . . . . . . . . . . . . . . . . 35<br />
7.3 Cross-Python Version compatibility helpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36<br />
8 1.4.27.dev 37<br />
9 1.4.26 39<br />
10 1.4.25 41<br />
i