Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/ahmetkotan/dupgee
- Owner: ahmetkotan
- License: mit
- Created: 2021-12-25T22:07:55.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-26T00:40:01.000Z (almost 3 years ago)
- Last Synced: 2024-09-30T07:07:34.772Z (about 1 month ago)
- Topics: esp8266, framework, micropython, micropython-esp8266, web
- Language: Python
- Homepage:
- Size: 214 KB
- Stars: 37
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)