Name | LibDOM JSON |
Version |
0.1.1
JSON |
| download |
home_page | https://github.com/PSalleSDev/LibDOM |
Summary | LibDOM is a Python library that abstracts all modern HTML tags, enabling you to build dynamic HTML documents programmatically. With a clean and intuitive Framework, LibDOM simplifies web development by allowing you to generate and manipulate HTML entirely in Python. Perfect for creating dynamic, maintainable, and responsive web pages. |
upload_time | 2024-12-10 09:13:27 |
maintainer | None |
docs_url | None |
author | Pedro Salles |
requires_python | None |
license | MIT License |
keywords |
html
builder
html builder
dom
document object model
dom builder
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# LibDOM
LibDOM is a Python library that abstracts 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 HTML tags (non-obsolete).
- **Flexibility**: Ideal for creating dynamic web pages that require frequent updates.
- **Productivity**: Reduces repetitive code, simplifies maintenance, and accelerates development.
## Example
```py
from libdom.Elements import *
from libdom.Styles import *
html = Html(
Head(
Style({
"body": {
Margin: "0",
Padding: "0",
Display: "flex",
JustifyContent: "center",
AlignItems: "center"
},
".div": {
Border: "1px solid black",
BackgroundColor: "red",
"&:hover": {
BackgroundColor: "blue"
}
}
})
),
Body(
Div(
P("Hello World"),
**{ Div.Attribute.Class: "div" }
)
)
)
print(html)
#<html>
# <head>
# <style>
# body {
# margin: 0;
# padding: 0;
# display: flex;
# justify-content: center;
# align-items: center;
# }
# #div {
# border: 1px solid black;
# background-color: red;
# &:hover {
# background-color: blue;
# }
# }
# </style>
# </head>
# <body>
# <div class="div">
# <p>
# Hello World
# </p>
# </div>
# </body>
#</html>
```
Raw data
{
"_id": null,
"home_page": "https://github.com/PSalleSDev/LibDOM",
"name": "LibDOM",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "Html, Builder, Html Builder, DOM, Document Object Model, DOM Builder",
"author": "Pedro Salles",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/aa/78/7280282df8930af753e5fc9badbd79df2fcb1e15cf854f907f580dde4dd4/libdom-0.1.1.tar.gz",
"platform": null,
"description": "# LibDOM\n\nLibDOM is a Python library that abstracts 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.\n\n## Key Features\n\n- **Complete Abstraction**: Supports all HTML tags (non-obsolete).\n- **Flexibility**: Ideal for creating dynamic web pages that require frequent updates.\n- **Productivity**: Reduces repetitive code, simplifies maintenance, and accelerates development.\n\n## Example\n\n```py\nfrom libdom.Elements import *\nfrom libdom.Styles import *\n\nhtml = Html(\n Head(\n Style({\n \"body\": {\n Margin: \"0\",\n Padding: \"0\",\n Display: \"flex\",\n JustifyContent: \"center\",\n AlignItems: \"center\"\n },\n \n \".div\": {\n Border: \"1px solid black\",\n BackgroundColor: \"red\",\n \"&:hover\": {\n BackgroundColor: \"blue\"\n }\n }\n })\n ),\n Body(\n Div(\n P(\"Hello World\"),\n **{ Div.Attribute.Class: \"div\" }\n )\n )\n)\n\nprint(html)\n\n#<html>\n# <head>\n# <style>\n# body {\n# margin: 0;\n# padding: 0;\n# display: flex;\n# justify-content: center;\n# align-items: center;\n# }\n# #div {\n# border: 1px solid black;\n# background-color: red;\n# &:hover {\n# background-color: blue;\n# }\n# }\n# </style>\n# </head>\n# <body>\n# <div class=\"div\">\n# <p>\n# Hello World\n# </p>\n# </div>\n# </body>\n#</html>\n```\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "LibDOM is a Python library that abstracts all modern HTML tags, enabling you to build dynamic HTML documents programmatically. With a clean and intuitive Framework, LibDOM simplifies web development by allowing you to generate and manipulate HTML entirely in Python. Perfect for creating dynamic, maintainable, and responsive web pages.",
"version": "0.1.1",
"project_urls": {
"Homepage": "https://github.com/PSalleSDev/LibDOM"
},
"split_keywords": [
"html",
" builder",
" html builder",
" dom",
" document object model",
" dom builder"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "61fdf2759bf8a93485dc3bb31239ace6471211b94146da81a703248c9e2ab217",
"md5": "96d33153e7b42affb2697833de0d4af6",
"sha256": "2191c14c650460cae141e3e39e55a2cc74de32e33c9cfb95452dfda50b740c51"
},
"downloads": -1,
"filename": "LibDOM-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "96d33153e7b42affb2697833de0d4af6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 22960,
"upload_time": "2024-12-10T09:13:25",
"upload_time_iso_8601": "2024-12-10T09:13:25.663765Z",
"url": "https://files.pythonhosted.org/packages/61/fd/f2759bf8a93485dc3bb31239ace6471211b94146da81a703248c9e2ab217/LibDOM-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "aa787280282df8930af753e5fc9badbd79df2fcb1e15cf854f907f580dde4dd4",
"md5": "13ae3f0dcbfd0820f6ea5f73feeec7e3",
"sha256": "6bd6c581c722f8b8b9c4847dfc57e63de42722eb7cb862c98d034bb38fc050e8"
},
"downloads": -1,
"filename": "libdom-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "13ae3f0dcbfd0820f6ea5f73feeec7e3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 22439,
"upload_time": "2024-12-10T09:13:27",
"upload_time_iso_8601": "2024-12-10T09:13:27.726982Z",
"url": "https://files.pythonhosted.org/packages/aa/78/7280282df8930af753e5fc9badbd79df2fcb1e15cf854f907f580dde4dd4/libdom-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-10 09:13:27",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "PSalleSDev",
"github_project": "LibDOM",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "libdom"
}