Dataflows
inspect_module()
登录后可跨设备保存划线和私人笔记登录
inspect_module()
Use this to get deep information about a Apache Hamilton module.
class hamilton.dataflows.InspectModuleResult(version, user, dataflow, python_dependencies, configurations, possible_inputs, nodes, designated_outputs)[source]
hamilton.dataflows.inspect_module(module: ModuleType) → InspectModuleResult[source]
Inspects the import module for information.
This does more than inspect because the module has been loaded and thus we can put it into a Hamilton driver and ask questions of it.
from hamilton.contrib.user.zilto import text_summarization
from hamilton import dataflows
info = dataflows.inspect_module(text_summarization)Parameters:
module – the module with Hamilton code to deeply introspect.
Returns:
hamilton.dataflow.InspectModuleResult object.
评论
登录后参与评论
正在加载评论…
KnowForge