Skip to main content

html2rest.py

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

Install

easy_install html2rest

Or:

pip install html2rest

Usage

From the command line:

html2rest http://sphinx.pocoo.org/templating.html > 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)

Metadata

Release files for html2rest 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distributions (sdists)

Source distribution for html2rest 0.2.2
File Size Uploaded Provenance Actions
html2rest-0.2.2.zip 6.5 kB Without provenance Details for html2rest-0.2.2.zip
html2rest-0.2.2.tar.gz 5.4 kB Without provenance Details for html2rest-0.2.2.tar.gz

Release files / html2rest-0.2.2.zip

Download URL html2rest-0.2.2.zip
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ce5a0dc752a5557b4d1aab3c5c5da3d0e6772236daba9abd4e62da93a9d73d20
BLAKE2b-256 checksum
How to use checksums
d059b92c04a55e2060cec5da25e370aedf813e1b9ef958b0ff8bd33f37f8b684
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / html2rest-0.2.2.tar.gz

Download URL html2rest-0.2.2.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d5d989480a27a85777a6b76079e78e6749221c70206877b585c18b760b92a52a
BLAKE2b-256 checksum
How to use checksums
72516b371ec166ff6ab913c8f4032faa850dff49a105c01e0c1daaee02a1004b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for html2rest 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page