https://github.com/znitche/strawberryapi
a lightweight MicroPython web framework & server for RaspberryPi Pico W | Replaced with lightberryAPI
https://github.com/znitche/strawberryapi
lightweight micropython raspberry-pi-pico rp2040 rpi-pico rpi-pico-w web-framework webserver
Last synced: 8 months ago
JSON representation
a lightweight MicroPython web framework & server for RaspberryPi Pico W | Replaced with lightberryAPI
- Host: GitHub
- URL: https://github.com/znitche/strawberryapi
- Owner: zNitche
- Archived: true
- Created: 2023-01-30T15:07:56.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-04T12:24:13.000Z (almost 3 years ago)
- Last Synced: 2025-03-24T06:51:54.187Z (12 months ago)
- Topics: lightweight, micropython, raspberry-pi-pico, rp2040, rpi-pico, rpi-pico-w, web-framework, webserver
- Language: Python
- Homepage:
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## strawberryAPI
a lightweight `MicroPython` web framework & server for `RaspberryPi Pico W`
### Features:
---
- async web server, can be used in 2 modes:
- as client
- as host (Wi-Fi hotspot)
- blueprints based routing (like `flask`)
- `GET` & `POST` request methods
- url parameters `/page_url_params/`
- query parameters `?arg=val`
- simple templating engine supporting:
- templates inheritance
- variables injection
- routing errors handling
- generator based file responses
- files hosting
- cookies support
- debug logging
### How to use:
---
get production ready package from `prod` branch, use it in your project as shown in `Examples` section
### Examples:
---
- basic server & app setup - `main.py`
- API (POST/GET) - `routes/api/routes.py`
- pages (redirects, forms etc.) with templates parsing - `routes/home/routes.py`
### Requirements
---
packages in `requirements.txt` used for `MicroPython` development with `PyCharm`