The difference how you call the imported functions.
I assume you have the functions foo()
and bar()
.
Compare this:
import FunctionLibrary
FunctionLibrary.foo()
FunctionLibrary.bar()
and this:
from FunctionLibrary import *
foo()
bar()
do you see the differences? the first one requires the name of the module to call the functions while the latter one allows you to call the functions without any prefix.
But both ways are not recomment. you should use
from FunctionLibrary import foo, bar as fl_bar
foo()
fl_bar()
This last way allows you to write aliases to call python functions. You will need this in case your imported modules has functions (or something else) with identical names.
You can alias your library, too like
from FunctionLibrary fl import bar as b
fl.b() # calls FunctionLibrary.bar()