Tips and Traps¶
Prefer
Dataclass
tonamedtuple
for many reasons.A namedtuple is immutable while a dataclass can be both mutable (
frozen=False
which is the default) or immutable (frozen=True
).However, namedtuple does have one advantage over dataclass. Members of a namedtuple is assible both via the dot operator and index. In situations where both dot accessing and index accessing of members is required, a namedtuple comes handy. For examples, a list of namedtuple objects can be used as the data for creating a pandas DataFrame but not a list of dataclass objects.
Python for Desktop Applications
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Simple Python Packages for GUI Applications
Tkinter
DearPyGui
DearPyGui Dear PyGui is a simple to use (but powerful) Python GUI framework. Dear PyGui provides a wrapping of Dear ImGui which simulates …
Memory Profiler for Python
Python for IOT
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Tips on Home Assistant
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
https://www.home-assistant.io/
https://github.com/home-assistant/core
GUI Automation Tools in Python
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
pyautogui https://github.com/asweigart/pyautogui
autopy https://github.com/autopilot-rs/autopy