Mini Web Framework on MicroPython (Esp8266)
Project description
dupgee
Dupgee is a mini web framework developed for micro-python(Tested on esp8266).
Installation
pip install dupgee
Create Project
dupgee create newproject
Let's code in pages.py
and add view to urls.py
.
When project has created, example views and urls already exists.
Edit WIFI_SSID
and WIFI_PASSWORD
variables in newproject/runner.py
file.
Run
This operation needs adafruit-ampy
package. See also https://learn.adafruit.com/micropython-basics-load-files-and-run-code/install-ampy installation and other details.
- Move files
ampy --port /dev/<your-serial-port> put newproject/
- Run In host machine
ampy --port /dev/<your-serial-port> run newproject/runner.py
# or another port
ampy --port /dev/<your-serial-port> run newproject/runner.py 8000
In serial connected python interpreter
exec(open("./newproject/runner.py").read(), globals())
Test
Contributing
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dupgee-0.3.tar.gz
(224.6 kB
view hashes)
Built Distribution
dupgee-0.3-py3-none-any.whl
(10.4 kB
view hashes)