Context
PR #56 review — @awsarron noted lazy import patterns are scattered across the package. Suggested a package-wide reusable lazy imports loader.
Problem
Multiple __init__.py files implement ad-hoc __getattr__ for lazy loading. require_optional() in utils.py handles import-or-fail but not deferred loading.
Proposed Solution
Create a reusable lazy-loading utility in strands_robots/utils.py that all __init__.py files can use, reducing boilerplate and ensuring consistency.
Acceptance Criteria
Ref: PR #56 review threads
Context
PR #56 review — @awsarron noted lazy import patterns are scattered across the package. Suggested a package-wide reusable lazy imports loader.
Problem
Multiple
__init__.pyfiles implement ad-hoc__getattr__for lazy loading.require_optional()inutils.pyhandles import-or-fail but not deferred loading.Proposed Solution
Create a reusable lazy-loading utility in
strands_robots/utils.pythat all__init__.pyfiles can use, reducing boilerplate and ensuring consistency.Acceptance Criteria
__getattr__lazy imports migratedRef: PR #56 review threads