Brython

1 program Added 2026-02-10T17:54:38Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Browser Python
Provenance: commit 45f313f013 · authored 2026-02-10T18:55:34+01:00 · agent claude-code · model sonnet

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Bython (0.29)JPython (0.27)Python (0.26)Jython (0.24)ChocoPy (0.23)

LLM-contributed programs

Simple Todo List

Provenance: commit 45f313f013 · authored 2026-02-10T18:55:34+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.py · license: BSD-3-Clause · added: 2026-02-10T17:54:38Z
from browser import document, html

def add_todo(event):
    """Add a new todo item to the list"""
    todo_input = document["todo-input"]
    todo_text = todo_input.value.strip()
    
    if todo_text:
        # Create new list item
        todo_item = html.LI()
        todo_item.text = todo_text
        
        # Create delete button
        delete_btn = html.BUTTON("Delete")
        delete_btn.bind("click", lambda e: todo_item.remove())
        
        todo_item <= delete_btn
        document["todo-list"] <= todo_item
        
        # Clear input
        todo_input.value = ""

# Bind the add button
document["add-btn"].bind("click", add_todo)

Contribute — propose a file extension

Tell us where to find evidence about Brython (mapped to pl/brython). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Brython/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Brutefock BS →