ahmetkotan / dupgee

Mini Web Framework on MicroPython (Esp8266)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Mini Web Framework on MicroPython (Esp8266)

License:MIT License


Languages

Language:Python 100.0%