Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ahmetkotan/dupgee

Mini Web Framework on MicroPython (Esp8266)
https://github.com/ahmetkotan/dupgee

esp8266 framework micropython micropython-esp8266 web

Last synced: 24 days ago
JSON representation

Mini Web Framework on MicroPython (Esp8266)

Awesome Lists containing this project

README

        

# dupgee
Dupgee is a mini web framework developed for micro-python(Tested on esp8266).

## Installation
```shell
pip install dupgee
```

## Create Project
```shell
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](https://learn.adafruit.com/micropython-basics-load-files-and-run-code/install-ampy) installation and other details.

* Move files
```shell
ampy --port /dev/ put newproject/
```

* Run
In host machine
```shell
ampy --port /dev/ run newproject/runner.py

# or another port
ampy --port /dev/ run newproject/runner.py 8000
```

In serial connected python interpreter
```python
exec(open("./newproject/runner.py").read(), globals())
```

## Test
![Run dupgee](screenshots/run.png)
![Browser](screenshots/homepage.png)
![Curl request](screenshots/curl.png)

# Contributing
See; [https://github.com/ahmetkotan/dupgee](https://github.com/ahmetkotan/dupgee)