Wilson Mar bio photo

Wilson Mar

Hello!

Calendar YouTube Github Acronyms

LinkedIn

python-features.png

US (English)   Norsk (Norwegian)   Español (Spanish)   Français (French)   Deutsch (German)   Italiano   Português   Estonian   اَلْعَرَبِيَّةُ (Egypt Arabic)   Napali   中文 (简体) Chinese (Simplified)   日本語 Japanese   한국어 Korean

Overview

How to automate Python

  1. Specify first line and main to run program directly.
  2. Define docstring on latest change, STATUS of program
  3. Define github URL where program is located in docstring

  4. Get parameter values from argument specified in call within CLI
  5. Read secrets from .env file outside the program and GitHub, cloud (akeyless.com)
  6. Positive and negative unit tests for each function (PyTest?)
  7. Read CSV file for multiple iterations

  8. Define OpenTelemetry (OTel) spans for tracing
  9. Define a code for each message
  10. Measure duration of each function with scope processed
  11. Output log entries with duration and process scope

  12. 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 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)