I saw the excellent Javascript-based guide to how Stockfish evaluates (non-NNUE). Is there a python version out there, perhaps using python-chess?
What I am trying to do (in case you have other suggestions for skinning this particular catfish): I plan to use this for didactic purposes. For various openings, I want to analyze how the different components of the evaluation function change in different lines (not sure what I am looking for, precisely, but clearly there is a trade-off between material/mobility/... that such an analysis may reveal).
In short, for a few thousand positions (not millions), I want a dictionary with keys such as "King Ring", "Weak Unopposed Pawn", etc.
If there is a python port of that javascript code, I can easily tweak it to my needs.