I want create some local simple site using only html/css/py backend but zero deps on for local use purposes. Site has to support .md in translating table case, so I want be able create tables, add new rows with task names and marker done or not, and impornatn thing button for each table allowing copy this table as md. What do you think?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Below is a zero-dependency, super-lightweight local “task table” editor that:
• Serves via a tiny Python HTTP server (binds only to 127.0.0.1)
• Loads any .md file you pick and lets you extract its first Markdown table
• Renders that table as an editable HTML table (add/remove rows)
• Lets you edit tasks & “done” status in the browser
• Has a Copy as Markdown button that dumps your current table back to MD and copies it to the clipboard
• No pip installs—just Python 3+ and a browser
1) server.py
python
#!/usr/bin/env python3
import http.server, socketserver, webbrowser, os
PORT = 8000
HERE = os.path.dirname(os.path.abspath(__file__))
class Handler(http.server.SimpleHTTPRequestHandler):
def __init__(self, *args, **kwargs):
super().__init__(*args, directory=HERE, **kwargs)
if __name__ == "__main__":
addr = ("127.0.0.1", PORT)
httpd = socketserver.TCPServer(addr, Handler)
url = f"http://{addr[0]}:{addr[1]}/index.html"
print(f"🔒 Serving LOCAL‐ONLY at {url}\n(Ctrl-C to quit)")
webbrowser.open(url)
try:
httpd.serve_forever()
finally:
httpd.server_close()
Run:
bash
python server.py
This will open your default browser to http://127.0.0.1:8000/index.html.