Python Reference
Python scripting patterns for infrastructure automation.
Fundamentals
| Topic | Description |
|---|---|
Variables, types, control flow, comprehensions |
|
Creation, slicing, comprehensions, sorting |
|
Access patterns, comprehensions, merging |
|
Args, kwargs, closures, lambdas |
|
OOP, inheritance, dataclasses, protocols |
|
Type hints, generics, TypeVar, mypy |
|
Function wrappers, class decorators, functools |
Testing & Packaging
| Topic | Description |
|---|---|
Fixtures, parametrize, mocking, coverage |
|
pyproject.toml, setuptools, wheels, publishing |
|
venv, uv, pip, dependency management |
Scripts
| Script | Description |
|---|---|
|
12-panel system health PNG — matplotlib, subprocess, Catppuccin Mocha |
|
12-panel hardware telemetry — CPU thermals, GPU, battery, WiFi, USB, kernel modules |
|
18-panel unified security — attack surface, 802.1X EAP-TLS, LUKS, AppArmor, kernel hardening, sandboxing, posture score |
|
Full system inventory — pandas DataFrames, CSV/JSON export |