The other half of this is that I've been messing with a-Shell which runs on iOS and can run command line stuff, (including Python scripts) and you can use Apple Shortcuts to run CLI stuff via a-Shell on iOS so yeah, that's pretty neat!
I feel like some of the scripting stuff I always wanted to do on iOS is possible.
https://apps.apple.com/us/app/a-shell/id1473805438