Any folder that contains __init___
becomes a Python package.
__init___
serves to:
Allow from myapp.routes import users
:
# myapp/__init__.py from .routes import users from .routes import products from .routes import orders
Class
__init__
is a constructor in a python class:
class MyClass: def __init__(self, name): self.name = name