Python Advanced (2023-09-25 - 2023-09-27)¶
Day 1¶
Recap Of Python Basics Course (Before Summer)¶
Look through code in https://github.com/jfasch/2023-05-15/tree/main/livehacking/userdb
Project Management: Requirements, Sandboxing, Testing¶
For those who want/need it:
Exercises¶
Clone project: https://github.com/jfasch/2023-09-25
Create virtual environment based upon
requirements.txt
Become acquainted with Test Driven Development: Exercise: Convert User Record To JSON And Back
Day 2¶
Object Oriented Programming¶
Classes¶
Exercises¶
Create a simple class: Exercise: Away From Raw Dictionaries
Into The Wild: Group Project Kickoff¶
With a basic understanding of code structuring (classes and modules - and TDD), let’s hack something. An idea:
Configurable set of sensors
Polymorphic data sinks (⟶ composite sink)
Acquisition engine in the middle
CSV sources and sinks?
MQTT maybe? How’s the internet accessed in the company? (MQTT)
Completely insane: the pytest monkeypatch fixture (testing MQTT functionality without MQTT/internet)