Skip to main content

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

Run dupgee Browser Curl request

Contributing

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

Project details


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)

Uploaded Source

Built Distribution

dupgee-0.3-py3-none-any.whl (10.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page