{"repo":"sn/ydnatl","free":true,"listed":false,"github":"https://github.com/sn/ydnatl","clone":"git clone https://github.com/sn/ydnatl.git","description":"YDNATL is a Python library that lets you build HTML UI using simple Python classes.","language":"Python","stars":11,"topics":["python","python3","template","templating-engine","html","ui"],"license":"MIT","category":"ui-components","readme_excerpt":"YDNATL YDNATL ( Y ou D on't N eed A nother T emplate L anguage) is a Python library that lets you build HTML using simple Python classes. It's great for apps that need HTML generation while skipping the hassle of writing it by hand or using a templating engine. - ✓ Declarative syntax for building HTML documents (like Flutter) - ✓ Easy to read and write - ✓ Supports all HTML5 elements - ✓ JSON serialization/deserialization for saving and loading UI structures - ✓ Pretty printing with indentation for readable HTML - ✓ CSS style helpers for easy inline styling - ✓ External stylesheet system with theming and BEM support - ✓ Method chaining for fluent interfaces - ✓ Context manager support for clean nesting - ✓ Fragment support for wrapper-free grouping - ✓ HTML parsing to convert raw HTML strings into YDNATL elements - ✓ Lightweight - ✓ Extremely fast - ✓ Fully customisable - ✓ Compose HTML efficiently - ✓ Lean & clean Python with no dependencies - ✓ LLM Compatible Requirements Python 3.8 or higher is required. Installation Usage This code will produce: Dynamic Composition All element classes are subclasses of HTMLElement. The parent class provides all of the inherited functionality to generate the individual tags. Keyword arguments passed to element constructors will be converted to attributes on the HTML elements being generated. Working with Attributes Pretty Printing YDNATL supports pretty printing with automatic indentation for readable HTML output: Pretty printing is perfec","default_branch":null,"files":null,"tree":[],"storefront":"/r/sn","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sn/ydnatl/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."}