RPi App Framework Modular framework for all Raspberry Pi models (Pico 2 W with MicroPython/Thonny, full RPi 1-5 with Python). Installation For MicroPython/Pico (Thonny):
Copy the rpi_app_framework folder to /lib on your Pico.
For full Python/RPi:
pip install rpi-app-framework
Usage Create a main.py to start your app:
examples/simple_demo.py
from rpi_app_framework import RPIApp, PiHardwareAdapter import time
class SimpleDemo(RPIApp): """ Minimal demo that shows: • Board model detection • CPU temperature monitoring • On-board LED blinking Works on Pico 2 W and all full-size Raspberry Pi models. """
def setup(self):
# Initialise the hardware adapter
self.hw = PiHardwareAdapter(log_func=self.log)
# Use the onboard LED (works on Pico and full RPi)
self.status_led = self.hw.led("LED" if "Pico" in self.hw.model else 13)
# Log startup info
self.log(f"Running on: {self.hw.model}")
self.log(f"Initial CPU temperature: {self.hw.cpu_temperature}°C")
def run(self):
while self.running:
# Blink the LED
self.status_led.value(1)
time.sleep(0.5)
self.status_led.value(0)
# Log temperature every 5 seconds
self.log(f"CPU temperature: {self.hw.cpu_temp}°C")
time.sleep(4.5)
if name == "main": SimpleDemo(max_log_files=10).start()
Compatibility
Pico 2 W (MicroPython): Uses machine for pins/PWM. Full RPi (Python): Uses RPi.GPIO and gpiozero for pins/PWM.
Features
RPIApp: Base class for app lifecycle and logging. DeviceManager: Base for hardware managers with logging. LEDSimple: Controls LEDs (on/off/blink). WiFiManager: Manages WiFi connections (Pico only). MotorDriverTB6612FNG: Controls dual DC motors. MicrodotManager: Runs a lightweight web server.
For example applications see projects at www.singerlinks.com
Metadata
Release files for rpi-app-framework 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rpi_app_framework-0.1.5.tar.gz | 31.5 kB | Without provenance | Details for rpi_app_framework-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rpi_app_framework-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for rpi_app_framework-0.1.5-py3-none-any.whl |
Total release size: 69.5 kB
Release files / rpi_app_framework-0.1.5.tar.gz
| Download URL | rpi_app_framework-0.1.5.tar.gz |
|---|---|
| Size | 31.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
026d8a3288e877dd7ac06b098183deda60b08b5d996bab7250e50e166505ed5d
|
|
BLAKE2b-256 checksum How to use checksums |
3935cf679b2fc4e5f5d66f858794818a8630d9e0aeeb7609bf02097ef1617c2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Release files / rpi_app_framework-0.1.5-py3-none-any.whl
| Download URL | rpi_app_framework-0.1.5-py3-none-any.whl |
|---|---|
| Size | 38.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d845dbce999465fb029f9af8f01f847cd3b9543ecf2c8d9b97b5b46a990975a5
|
|
BLAKE2b-256 checksum How to use checksums |
004b069b104d3fa383273393560a7fde6a801f03b9ad3f338174d45efb4ce648
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Security for rpi-app-framework 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.