or from ecommerce import products product products product(the import statements use the period operator to separate packages or modules these statements will work from any module we could instantiate product class using this syntax in main pyin the database moduleor in either of the two payment modules indeedassuming the packages are available to pythonit will be able to import them for examplethe packages can also be installed to the python site packages folderor the pythonpath environment variable could be customized to dynamically tell python what folders to search for packages and modules it is going to import sowith these choiceswhich syntax do we chooseit depends on your personal taste and the application at hand if there are dozens of classes and functions inside the products module that want to usei generally import the module name using the from ecommerce import products syntaxand then access the individual classes using products product if only need one or two classes from the products modulei can import them directly using the from ecommerce proucts import product syntax don' personally use the first syntax very often unless have some kind of name conflict (for examplei need to access two completely different modules called products and need to separate themdo whatever you think makes your code look more elegant relative imports when working with related modules in packageit seems kind of silly to specify the full pathwe know what our parent module is named this is where relative imports come in relative imports are basically way of saying find classfunctionor module as it is positioned relative to the current module for exampleif we are working in the products module and we want to import the database class from the database module next to itwe could use relative importfrom database import database the period in front of database says "use the database module inside the current packagein this casethe current package is the package containing the products py file we are currently editingthat isthe ecommerce package if we were editing the paypal module inside the ecommerce payments packagewe would want to say "use the database package inside the parent packageinstead this is easily done with two periodsas shown herefrom database import database