A library for converting HTML to plain text.
Project description
August - a html-to-text converter
August is an html to text converter specifically intended for producing text versions of HTML emails. The main code is all written in Rust, this packages is includes python bindings.
Getting Started
Install using PIP
$ pip3 install august
Then, import it and run convert
import august
html = '<p>I\'m <em>so</em> excited to try this</p>'
print(august.convert(html, width=20))
which prints
I'm /so/ excited to
try this
Alternatives
- html2text: Coverts HTML into markdown, and supports a bazillion options. It's a great project if you want to produce markdown; but markdown, because it's designed to be turned into HTML, has a little more noise than is strictly necessary, and the header formatting is pretty unclear.
- html-to-text: Converts HTML to text. Javascript/node project.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
august-2.4.0.tar.gz
(7.5 kB
view details)
Built Distributions
File details
Details for the file august-2.4.0.tar.gz
.
File metadata
- Download URL: august-2.4.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4102947aa453e8825b627e031380489a8d4c1f804a956e68c6fabe89f4de3414 |
|
MD5 | 35174de8642e78fea316cd66d4206335 |
|
BLAKE2b-256 | 8e7e46ae8400fad2846cd0c18d8a3eafbc20fadbe9adbbbbec0bb7c4a4eb24fa |
File details
Details for the file august-2.4.0-cp38-cp38-manylinux1_x86_64.whl
.
File metadata
- Download URL: august-2.4.0-cp38-cp38-manylinux1_x86_64.whl
- Upload date:
- Size: 880.9 kB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b4b8b2c7a20f1cf724ff45e5c0773f591f6fc9901bf240f8b28a5e16faa053c |
|
MD5 | 22b55f72b534298a4d2fe541cbd726d3 |
|
BLAKE2b-256 | 298e2fc8841f81112e7e3be6518f40f6481a0f93525026f5e7b3fbf485a1e480 |
File details
Details for the file august-2.4.0-cp37-cp37m-manylinux1_x86_64.whl
.
File metadata
- Download URL: august-2.4.0-cp37-cp37m-manylinux1_x86_64.whl
- Upload date:
- Size: 880.9 kB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8479a36eb55240de4c283bb2742a6af5435b9b7fca68ca4869b7746b5f1e3305 |
|
MD5 | 847ebf78954bcae59062d7efaf80e03c |
|
BLAKE2b-256 | c7625ab54c798b0ed703fd683e723c561c4ea959a41b4bc0572e3f83d17137ee |
File details
Details for the file august-2.4.0-cp35-cp35m-manylinux1_x86_64.whl
.
File metadata
- Download URL: august-2.4.0-cp35-cp35m-manylinux1_x86_64.whl
- Upload date:
- Size: 880.9 kB
- Tags: CPython 3.5m
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfba5f9533d74ae2e0ac60d430b5c18b14cc12073a67a898c102b9855803547d |
|
MD5 | 45c0c307570ea242a7a6b5f149f42697 |
|
BLAKE2b-256 | 99e9d6af512cab431b604ce6f44b530963d13ea363407ed0ee5f1aca092799b2 |