mod2doctest 0.2.0
A way to convert any Python module to a doctest ready doc string.
Downloads ↓ | Package Documentation
mod2doctest is a module that converts a python module to a doctest compatible docstring.
It's kind of like taking a python script, pasting it into an interactive interpreter and then copying the output back into a docstring.
However, mod2doctest has many convenience to make this process easier like:
- Providing #> and #| comments: #> prints to both your docstring and stdout and #| print just to your docstring (which will show up as text in a sphinx generated webpage)
- adding ellipse markers for memory id / trace back
- Cleaning up / formatting your docstring for sphinx inclusion
- and a couple of other things, too.
For full documentation and several examples please visit http://packages.python.org/mod2doctest/.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| mod2doctest-0.2.0-py2.4.egg (md5, pgp) | Python Egg | 2.4 | 2010-09-26 | 46KB | 334 |
| mod2doctest-0.2.0-py2.5.egg (md5, pgp) | Python Egg | 2.5 | 2010-09-26 | 46KB | 326 |
| mod2doctest-0.2.0-py2.6.egg (md5, pgp) | Python Egg | 2.6 | 2010-09-26 | 46KB | 329 |
| mod2doctest-0.2.0-py2.7.egg (md5, pgp) | Python Egg | 2.7 | 2010-09-26 | 46KB | 592 |
| mod2doctest-0.2.0.win32-py2.4.exe (md5, pgp) | MS Windows installer | 2.4 | 2010-09-26 | 83KB | 151 |
| mod2doctest-0.2.0.win32-py2.5.exe (md5, pgp) | MS Windows installer | 2.5 | 2010-09-26 | 83KB | 154 |
| mod2doctest-0.2.0.win32-py2.6.exe (md5, pgp) | MS Windows installer | 2.6 | 2010-09-26 | 214KB | 154 |
| mod2doctest-0.2.0.win32-py2.7.exe (md5, pgp) | MS Windows installer | 2.7 | 2010-09-26 | 214KB | 159 |
| mod2doctest-0.2.0.zip (md5, pgp) | Source | 2010-09-26 | 9KB | 275 | |
- Author: Andrew Carter
- Documentation: mod2doctest package documentation
- Home Page: http://packages.python.org/mod2doctest/
- Keywords: doctest unit test
- License: MIT
- Categories
- Package Index Owner: cart0113
- DOAP record: mod2doctest-0.2.0.xml
