Python for Hardware: Scripts, Environments and Logging
Write Python that keeps running on a Pi: script structure with main(), virtual environments and why pip is restricted on current Raspberry Pi OS, requirements files, configuration instead of hard-coded values, the logging module with rotation, exceptions and clean shutdown on Ctrl+C and SIGTERM, timestamps in UTC, writing CSV and JSON lines, and testing logic off the Pi.
Python for Hardware: Scripts, Environments and Logging
Write Python that keeps running on a Pi: script structure with main(), virtual environments and why pip is restricted on current Raspberry Pi OS, requirements files, configuration instead of hard-coded values, the logging module with rotation, exceptions and clean shutdown on Ctrl+C and SIGTERM, timestamps in UTC, writing CSV and JSON lines, and testing logic off the Pi.
In this lesson:
- python
- venv
- pip
- logging
- configuration
- signal handling
- csv
- json
- requirements
- pytest
Official References
This lesson is part of a paid plan
Upgrade to Pro to unlock this course, its labs and its exam.
View Pricing Plans