html-pretify
Lektor plugin to pretify the HTML DOM using Beautiful Soup.
How does it actually work?
- It uses Beautiful Soup.
- It looks for rendered
.htmlfiles and pipe it through Beautiful Soup, after opening the files via codecs.
Installation
You can install the plugin with Lektor's installer:
lektor plugins add lektor-html-pretify
Or by hand, adding the plugin to the packages section in your lektorproject file:
[packages]
lektor-html-pretify = 2.0.0
Python3
It is highly recommended to use this plugin with a python3 version of lektor.
Since lektor can be used as a python module it is possible to enforce this (after lektor is installed eg. with pip3 install --user --upgrade lektor) with the following command:
# run a python3 lektor server
python3 -m lektor server
Development
To test and/or develop on this plugin in your running lektor installation, simply place it in the packages/ Folder and have a look at the Lektor Docs
Metadata
Release files for lektor-html-pretify 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lektor-html-pretify-2.0.0.tar.gz | 3.6 kB | Without provenance | Details for lektor-html-pretify-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lektor_html_pretify-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for lektor_html_pretify-2.0.0-py3-none-any.whl |
Total release size: 7.6 kB
Release files / lektor-html-pretify-2.0.0.tar.gz
| Download URL | lektor-html-pretify-2.0.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
639deac66fc00847e324be17c4aa605c30cdd5147ce243d94f873e48f915d0c5
|
|
BLAKE2b-256 checksum How to use checksums |
b89b100bb36aaf4a1a5da6885b897532b91a3dc97fc6e2feeaf7d2331e9f88c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Release files / lektor_html_pretify-2.0.0-py3-none-any.whl
| Download URL | lektor_html_pretify-2.0.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
147bc9c2388fea8b0eab6ea845fd051c148fa7b6d52cb2d640e3b93aa0adf955
|
|
BLAKE2b-256 checksum How to use checksums |
eac4cbb7d03c249837778467078c9c54e8106888c8047daa1a1ca28e5f278b7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Security for lektor-html-pretify 2.0.0
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.