At least with python you can get away with an awful lot without pulling in random packages. I use python repl and scripts daily, and seldom use pip (apt repos I’m fine with)
If you code mindfully, Python stdlib can do tons and tons of things (I love logging and argparse, for example). But I have seen the other end of the spectrum, too. Somebody imported whole Pandas just to read a couple of columns from an Excel file, to create a simple URL list, and some folders.
To download the free Springer books during COVID.
I mean, ouch.
P.S.: If you like your eyes, please don't look at AI stacks.