{"repo":"byteface/domonic","free":true,"listed":false,"github":"https://github.com/byteface/domonic","clone":"git clone https://github.com/byteface/domonic.git","description":"Create HTML with python 3 using a standard DOM API. Includes a python port of JavaScript for interoperability and tons of other cool features. A fast prototyping library.","language":"Python","stars":144,"topics":["python","dom","html","dom-api","javascript","terminal","prototype","python3","hacktoberfest","hacktoberfest2021"],"license":"MIT","category":"cli-tools","readme_excerpt":"𖤐 domonic 𖤐 A pure Python DOM that goes way beyond minidom - Python 3.10+ - HTML, SVG, DOM, events, web APIs, animation, and a JavaScript-like runtime - Built for generating, parsing, traversing, and manipulating real document trees Install For development: Creating HTML with Python 3 to pretty format and insert the doctype, use an f-string: Parsing html or parse an entire webpage with the window module... html5lib is bundled as the default parser as it's pure python. However see the Parsers section below as other parser backends are supported and are much faster. xpath or css Use xpath or css selectors on command line... More - html : Generate html with Python 3 😎 - dom : DOM API in Python 3 😲 - javascript : js API in Python 3 😳 + (dQuery, d3) - JSON : utils for loading / decorating / transforming - SVG mathml aframe x3d tags - generators for popular tags - terminal cmd : call terminal commands with Python3 😱 See the docs/code for more features or examples in the repo Namespace Simply import what you need... or use the tags package if you want a namespace. i.e. HTML attributes Prepend attributes with an underscore ( avoids clashing with Python keywords ) Rendering DOM objects domonic is a pure Python DOM whose tree is composed of objects. i.e cast str() on any element to render it without formatting. There's also a render method that takes 2 parameters, some domonic and an optional output file. For rendering options see DOMConfig. DOM DOM manipulation with Python, buil","default_branch":null,"files":null,"tree":[],"storefront":"/r/byteface","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/byteface/domonic/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}