from .package_name # relative to current file from ..package_name # parent of current file from package_name # absolute import from the root
Module exporting and importing:
# modules need __init__.py to export its members ## __init__.py from .module_name import function_name ## main.py from package_name.module_name import function_name