bottlepy/bottle ? reverse-engineered prompt
Reverse engineered prompt
Build me a tiny Python web framework that is super simple to use and easy to drop into a project as a single file.
I want it to let me map URLs to functions, including dynamic paths like /hello/<name>, and have a built in way to return HTML with simple templates. It should also make it easy to read form data, file uploads, cookies, headers, and other basic request info without a lot of setup.
Please include a small development server so I can run it locally right away, and make it work as a WSGI app so it can be used with common production servers too. Keep it lightweight, with no dependencies beyond the Python standard library if possible.
Add a few clear example routes and a simple hello world style demo so I can see how it works right away. If you need to check current Python docs or WSGI details, go ahead and look them up online.
Are you gonna build this?
make sure you review the code using coderabbit