A html to object framework
Project description
Talkweb
Assemble pages.
Talkweb makes a Object tree of html and allows addition, insertion and deletion to the tree like DOM.
from talkweb import *
roots = h2o(htmlfile)
#assuming htmlfile has <!Doctype html><html><div id="x"></div></html>
#cell is a node
roots[1].findcellbyid("x")
widget = h2o(widgethtmlfile)
roots[1].addcell(widget)
html=''
for root in roots:
html += root.html()
print(html)
Like it, then you will like to develop with talkweb. If not, leave you to templates and it's rules.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
talkweb-1.3.tar.gz
(8.2 kB
view details)
Built Distribution
talkweb-1.3-py3-none-any.whl
(8.4 kB
view details)
File details
Details for the file talkweb-1.3.tar.gz
.
File metadata
- Download URL: talkweb-1.3.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1915b9ecebe795e1d0041b5be015fe3f2f2d4578555f10cdfaf9714a4e31e52 |
|
MD5 | b936b88a7a4f40cf8752bf2a617abec1 |
|
BLAKE2b-256 | b0df23dca2e98f9708bbeeba3a4718a373d796588e47e9e4ed51ec7a2701b5eb |
File details
Details for the file talkweb-1.3-py3-none-any.whl
.
File metadata
- Download URL: talkweb-1.3-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88e2c32c8ea9953adb6dd84237a5730da0f6bf937ad05c8b6798939c50e6d431 |
|
MD5 | ce67965db7b46a555fa1d9cbf38c8081 |
|
BLAKE2b-256 | 395470a44570b6021933da9c2df2d7656d3724b6fe64b09e4b387a2e574e8bc0 |