views:

79

answers:

3

I write blog by using rst, and I manually convert it into html, and post it.

For now, I want to create a simple blog system by using GAE,

I know docutils can convert rst to html,

but docutils is big, is there a single py file for convert rst to html?

anyone notice GAE?

+1  A: 

docutils is a library that you can install. It also installs front end tools to convert from rest to various formats including html.

This is a stand alone tool that can be used.

Most converters will exploit the docutils library for this.

pyfunc
A: 

If Pyfunc's answer doesn't fit your needs, you could consider using the Markdown language instead. The syntax is similar to rst, and markdown.py is fairly small and easy to use. It's still not a single file, but you can import it as a module into any existing scripts you may have.

http://www.freewisdom.org/projects/python-markdown/

AndrewF
A: 

Have a look at the instructions for hacking docutils. You don't need the whole docutils to produce a html from rst, but you do need a reader, parser, transformer and writer. With some effort you could combine all of these to a single file from the existing docutils files.

Matti Pastell