CHICKEN NUGET_
by 360Digital, Co.
// Build HTML with Python. No templates. No regrets.
Python 3.9+ Zero dependencies MIT License pip installable
$ pip install chicken-nuget
inline compiler — runs entirely in your browser
editor.py
PYTHON
output

    
ready — press ▶ RUN or Ctrl+Enter 0 chars
quick reference
PatternExampleOutput
Basic tag p("hello") <p>hello</p>
Attribute a("link", href="#") <a href="#">link</a>
class keyword div(class_="box") <div class="box"></div>
Boolean attr input_(disabled=True) <input disabled>
Nesting ul(li("a"), li("b")) Indented HTML tree
Chain div().add(p("hi")).attr(id="x") Fluent builder
style() helper style(font_size="16px") font-size: 16px;
Render render_page(html(...)) Full page with DOCTYPE
Write to file to_file(page, "index.html") Saves to disk
Raw HTML Raw("<!-- comment -->") Passthrough, no wrapper