You can do this in __init__.py (because this is what you import when you import package ):
from package.functions import * from package.classes import *
However, import * almost always a bad idea , and this is not one of the exceptions. Instead, many packages explicitly import a limited set of common names - say,
from package.functions import do from package.classes import A
It also allows you to directly access do or A , but itβs not as strong as conflicts and other problems arising from import * can be called.
delnan
source share