dupgee icon indicating copy to clipboard operation
dupgee copied to clipboard

Mini Web Framework on MicroPython (Esp8266)

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

Run dupgee Browser Curl request

Contributing

See; https://github.com/ahmetkotan/dupgee