Automation · Python Automation
Python Fundamentals
Cheat sheet · https://pcornel.dk/topic.php?topic=5255
Answer
Python fundamentals for automation: readable syntax, rich standard library, indentation-defined blocks, data types like lists and dicts, and huge ecosystems for networking, cloud and APIs.
Remember
- Python has readable syntax and a rich standard library.
- Indentation defines blocks.
- Huge ecosystem for networks, cloud and APIs.
First checks
python3 --version— versionpython3 -m py_compile script.py— syntax checkruff check .— lint
Verify in this order
code → interpreter → result
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5255