LibDOM is a Python library that abstracts all modern HTML tags, enabling you to build dynamic HTML documents programmatically. With a clean and intuitive API, LibDOM simplifies web development by allowing you to generate and manipulate HTML entirely in Python. Perfect for creating dynamic, maintainable, and responsive web pages.
Project description
LibDOM
LibDOM is a Python library that abstracts all modern (non-obsolete) HTML tags, allowing you to create dynamic HTML documents in a simple and programmatic way. With LibDOM, you can generate HTML structures entirely in Python, bringing clarity and flexibility to web development.
Key Features
- Complete Abstraction: Supports all modern HTML tags.
- Flexibility: Ideal for creating dynamic web pages that require frequent updates.
- Productivity: Reduces repetitive code, simplifies maintenance, and accelerates development.
Example
from libdom import Html, Body, Div, P
# Creating a dynamic HTML page
page = Html(
Body(
Div(
P("Hello, LibDOM! Building dynamic HTML with Python.", style="margin: none;"),
class_="div",
id="div"
)
)
)
print(page)
# Return <html><body><div class="div" id="div" ><p style="margin: none;" >Hello, LibDOM! Building dynamic HTML with Python.</p></div></body></html>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file libdom-0.0.2.tar.gz.
File metadata
- Download URL: libdom-0.0.2.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bd1db50ccd86f2b307f7e1cdc59a60afc87ba6a7c367a518c3ab218d17237bd
|
|
| MD5 |
78223b8f9ddc58b0ff9ad3accf63c801
|
|
| BLAKE2b-256 |
77f113db92cc1b12e39ef8a252ed61a8af7af3c263c9b9fe77d7fe620a1b02b2
|