[Docpie]

Fork me on GitHub

Debug & Develop


preview

Docpie has a function called preview which can give you a quick view how Docpie understand your message.

Simply call pie.preview(). Note the result is a little different from how you defined.

from docpie import Docpie
pie = Docpie(__doc__)
pie.preview()

Develop

execute /test.py to run the test.

the logger name of docpie is "docpie"

docpie contains two developing tools: bashlog & tracemore. The basic usage is:

from docpie import docpie, bashlog
from docpie.tracemore import get_exc_plus

logger = bashlog.stdoutlogger('docpie')  # You may init your logger in your way

try:
    docpie(doc)
except BaseException:
    logger.error(get_exc_plus())

bashlog.py is from tornado, and tracemore.py is from python Cookbook


If you like this project, you can buy me a beer to help me make it better! | Flattr this

侧栏导航