I trying to understand how to manage module with __all. For example, I have following structured code:
__all
main.py |=> /database |=> __ini
Listing names in __all__ does not, by itself, import items into a module. All it does is list names to import from that module if you used from database import * syntax.
__all__
from database import *
Import session into database/__init__.py:
session
database/__init__.py
from .engine import session