Skip to main content

pyhtmlbuilder

Build HTML with Python.

Installation

pip install pyhtmbuilder

Example

from pyhtmbuilder import *

html = Html(
    Head(),
    Body(
        Div(
            H1("Hello World"),
            P("Built with pyhtmbuilder")
        )
    )
)

print(html)

Output:

<html>
<head>

</head>
<body>
<div>
<h1>Hello World</h1>
<p>Built with pyhtmbuilder</p>
</div>
</body>
</html>

Features

  • Simple API

  • Pure Python

  • HTML Tree Structure

  • Export to .html files

Current Tags

Container Tags

  • Html

  • Head

  • Body

  • Div

Text Tags

  • H1

  • P

Requirements

Python 3.10+

License

MIT License

Metadata

Release files for pyhtmbuilder 0.1.0

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

Source distribution (sdist)

Source distribution for pyhtmbuilder 0.1.0
File Size Uploaded Provenance Actions
pyhtmbuilder-0.1.0.tar.gz 1.9 kB Without provenance Details for pyhtmbuilder-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyhtmbuilder 0.1.0
File Interpreter ABI Platform Actions
pyhtmbuilder-0.1.0-py3-none-any.whl Python 3 none any Details for pyhtmbuilder-0.1.0-py3-none-any.whl

Total release size: 4.0 kB

Release files / pyhtmbuilder-0.1.0.tar.gz

Download URL pyhtmbuilder-0.1.0.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
36282e03e738282ad9a9c2a9097a8bf09cd6cde84e3bd7c4ea774589d017e34b
BLAKE2b-256 checksum
How to use checksums
a8a01e9ffc69f600c2e49cd27cfe4e4ef7b4923059f79e428fe74a404736b572
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release files / pyhtmbuilder-0.1.0-py3-none-any.whl

Download URL pyhtmbuilder-0.1.0-py3-none-any.whl
Size 2.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a3b9649ba1d557d0e70713cfd4c623c4ff7d49284d27e4357daf8f4998fb2b5
BLAKE2b-256 checksum
How to use checksums
478b55e5590600341c03e9f336f3cfbaa31e27580d382af23162595196d9a0f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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