picoweb
picoweb copied to clipboard
Really minimal web application framework for the Pycopy project (minimalist Python dialect) and its "uasyncio" async framework
Hi! I'm using Picoweb and it's great. However, I'm feeling that it lacks of some minor features and convenience methods. I'm working on these features as I need them in...
It looks like while loop around sub app search became redundant. As far as I can see it won't change code if it is removed.
The `get_mime_type` function supports HTML pages, CSS Stylesheets and basic graphic formats. With JavaScript added all basic web page elements can now be served.
Environment: NodeMcu clone ESP8266 with picoweb built into custom firmware 1. Copy _example_webapp2.py_ to esp8266 and _squares.tpl_ into _templates_ dir 2. Connect to network as station 3. Add IP address...
Is there some hack how to start websockets endpoint on some path?
Is there simple way how to make https webserver? Micropython has module ussl what can wrap socket to tls. If possible I would like to generate elliptic curve self signed...
When working with `render_templates()`, the whole utemplate library is loaded: https://github.com/pfalcon/picoweb/blob/6e3685024968624337e20bd48f42e48abf4371c0/picoweb/__init__.py#L224 This was a too high memory demand in my use case on an ESP8266. So I ended up comiling...
Currently, for each request, headers are being parsed, decoded to str's and stored in req.headers dict. The idea is to skip decoding to str's to save on memory pressure. But...
Matching, at least for static files, might be possible to optimize, by having patterns like r"static/(.+)", where, if it matches, original request path is passed to resource_stream().
Hi! I don't know if this is the best place to share, but I've been able to install and use the Picoweb on an ESP32. I'm leaving the instructions that...