Skip to content

Wire without cascading import #441

Closed
@ssheng

Description

@ssheng

First of all. Thanks for creating and maintaining this great library. I have a question regarding wire.

It seems like wire does a pkgutil.walk_packages and import all modules through importlib.import_module. This prevents the ability to lazily import dependencies as they are needed especially when there are large libs like numpy and grpcio involved. What is the recommendation to wire without cascading imports?

Thanks,
Sean

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions