Skip to main content

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 hashes)

Uploaded Source

Built Distribution

talkweb-1.3-py3-none-any.whl (8.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page