single py file for convert rst to html

The Sphinx documentation generator Python library includes many restructured text (RST) command-line converters.

Install Sphinx:

$ pip install sphinx

Then use one of the many rst2*.py helpers:

$ rst2html.py in_file.rst out_file.html

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

  • http://docutils.sourceforge.net/docs/user/tools.html#rst2html-py

This is a stand alone tool that can be used.

Most converters will exploit the docutils library for this.