Overview
How to automate Python
- Specify first line and main to run program directly.
- Define docstring on latest change, STATUS of program
-
Define github URL where program is located in docstring
- Get parameter values from argument specified in call within CLI
- Read secrets from .env file outside the program and GitHub, cloud (akeyless.com)
- Positive and negative unit tests for each function (PyTest?)
-
Read CSV file for multiple iterations
- Define OpenTelemetry (OTel) spans for tracing
- Define a code for each message
- Measure duration of each function with scope processed
-
Output log entries with duration and process scope
- Instead of Matplotlib:
- Plotly (for interactivity and modern UI)
- Altair (for quick, declarative, grammar-based plots)
- Polars + hvPlot (if you’re moving toward faster, Arrow-native workflows)
brew search
brew search python ==> Formulae boost-python3 python-setuptools bpython python-tabulate brewsci/bio/boost-python3@1.87 python-tk@3.10 cyclonedx-python python-tk@3.11 ipython python-tk@3.12 ✔ libvirt-python python-tk@3.13 ✔ micropython python-tk@3.9 ptpython python-yq python-argcomplete python@3.10 python-build python@3.11 ✔ python-freethreading python@3.12 ✔ python-gdbm@3.11 python@3.13 ✔ python-gdbm@3.12 python@3.8 python-gdbm@3.13 python@3.9 python-launcher reorder-python-imports python-lsp-server wxpython python-markdown pythran python-matplotlib cython python-packaging ✔ jython
References
BOOK: “Python Tricks: A Buffet of Awesome Python Features “ from 2017 by Dan Bader (of RealPython.com) recommends assertions
VIDEO: 22:43 AI-generated podcast about book BOOK: “Python Basics: A Practical Introduction to Python 3rd Edition” by David Amos (Author), Dan Bader (Author), Joanna Jablonski (Author), Fletcher Heisler (Author)
VIDEO $55 “The Kubernetes Bible: The definitive guide to deploying and managing Kubernetes across major cloud platforms” by by Nassim Kebbani (Author), Piotr Tylenda (Author), Russ McKendrick (Author)
Pythonista mobile IDE
https://apps.apple.com/us/app/pythonista-3/id1085978097 Pythonista 3 ($9.99 by omz:software) Python IDE for iPad (and iPhone)