Usually, python libraries such as numpy or matplotlib are used with "import numpy" in a .py script, then we call the functions we imported.
However some libraries such as "pip" or "anaconda" are not imported in a script, but rather they are command-based: called from a terminal using arguments and options such as "pip install [options] [whatever]".
Today I installed a library and it took me a while to realise it was command-based, and wouldn't work if I just ran the script "main.py" it contained.
My question is: what is the fundamental difference between those 2 kind of libraries? How do I learn to make command-based libraries?
Basically I just want to understand them, but don't even know where to begin my research.