Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
/ strawberryAPI Public archive

a lightweight MicroPython web framework & server for RaspberryPi Pico W | Replaced with lightberryAPI

Notifications You must be signed in to change notification settings

zNitche/strawberryAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/<arg_1>
  • 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