Adding to __init__.py¶
Purpose¶
Make new public APIs available for easy imports.
Rules¶
- Only import important and relevant classes and functions.
- Do not import everything from a module (e.g.,
from particula.<area> import *). - Only include public names (no leading
_). These helpers are not intended for public use. - Keep imports minimal and grouped logically.
- Maintain alphabetical order within groups.
Steps¶
- Open
particula/<area>/__init__.py. - Add under the right section:
from particula.<area> import ClassName, function_name