Problem Statement
Design a small package structure and explain how to expose a clean public API.
Explanation
Organize code by feature: keep internals in submodules and re-export stable names in the package’s __init__.py. This gives users short imports while letting you refactor internals later. Use __all__ to declare what is public.
Document the public surface and keep breaking changes behind the package boundary. Internals can change, but the top-level API should remain stable for consumers.
Code Solution
SolutionRead Only
mypkg/ __init__.py # from .core import run; __all__=['run'] core.py utils.py
