Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Convert HTML to restructuredText

Project Description

Convert HTML to restructuredText. Very limited, but intended as a “50%” tool, to be followed by manual editing.


easy_install html2rest


pip install html2rest


From the command line:

html2rest > templating.rst

Or programmatically:

from html2rest import html2rest

stream = StringIO()

html2rest('<ul><li>one</li><li>two</li></ul>', writer=stream)

Specify input encoding (default is ‘utf8’) and a preprocessor:

def strip_chars(html):
    return html.replace('¶', '')

html2rest(html, writer=stream, encoding='latin1', preprocess=strip_chars)

Release History

This version
History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(5.4 kB) Copy SHA256 Hash SHA256
Source None Sep 9, 2012
(6.5 kB) Copy SHA256 Hash SHA256
Source None Sep 9, 2012

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate