Skip to main content
==========
Html utils
==========

.. image:: https://travis-ci.org/zenwalker/python-htmlutils.svg
:target: https://travis-ci.org/zenwalker/python-htmlutils
:alt: Build Status


Usage
=====

tags.tag(content: str, **attrs) -> str
--------------------------------------

Render HTML tags as ``tags.h1('hello', _class='heading')``.

htmlutils.parse_attrs(attrs: str) -> dict
-----------------------------------------

Parse a string like ``class="input" type="text" required`` into ``dict``.

htmlutils.render_attrs(attrs: dict) -> str
------------------------------------------

Render ``dict`` to string like ``class="input" type="text" required``.


Running tests
=============

::

$ python -m unittest tests/test_html.py

Metadata

Release files for htmlutils 0.1.2

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

Source distribution (sdist)

Source distribution for htmlutils 0.1.2
File Size Uploaded Provenance
htmlutils-0.1.2.tar.gz 2.2 kB Without provenance Details

Release files / htmlutils-0.1.2.tar.gz

Download URL htmlutils-0.1.2.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
44087f743caee355688d918b6026b8ceca85ebf51ac3581303402cfd6891c7e1
BLAKE2b-256 checksum
How to use checksums
dd3fc3436283ce5ac90f8b216e7c764cba3d0030985e76ae0ab23884c5dde2bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for htmlutils 0.1.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