Extract plain text from HTML
Project description
Extract plain text from HTML
Installation
$ uv add plainhtml
For development in this repository:
$ uv sync --dev
Example
>>> import plainhtml
>>> html = "<html><body><p>foo</p><p>bar</p></body></html>"
>>> plainhtml.extract_text(html)
'foo\n\nbar'
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
plainhtml-0.3.0.tar.gz
(68.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file plainhtml-0.3.0.tar.gz.
File metadata
- Download URL: plainhtml-0.3.0.tar.gz
- Upload date:
- Size: 68.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d49d2c05ef566a01c73633d53ee67b51d39836a9095ebd24fbf2cb6d29183a1
|
|
| MD5 |
13588956d4abc3d0369d544ec6d36491
|
|
| BLAKE2b-256 |
912ee50e14c23a480ac9bffb5141d8eb6d8c5aed486ce4043a08f46ae83d9878
|
File details
Details for the file plainhtml-0.3.0-py3-none-any.whl.
File metadata
- Download URL: plainhtml-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab28823248b9755d0b33b9c59784de1153bd91ffc74aaa49c335df80c86ac4e9
|
|
| MD5 |
232cb0e9b86630ae2de572aa6efca35e
|
|
| BLAKE2b-256 |
08b9200935e9033a00e6916e811e62092e494ac1aaf75811f6c11d4621044539
|