nvflare.tool.agent.inspection.source module

One-pass recognition of the closed V3 training-owner forms.

class Bindings(path: 'str' = '.', redact: 'bool' = True, findings: 'list[dict]' = <factory>, symbols: 'dict[str, str]' = <factory>, subclasses: 'dict[str, str]' = <factory>, factories: 'dict[str, _RecognizedReceiver]' = <factory>, instances: 'dict[str, str]' = <factory>, optimizers: 'set[str]' = <factory>, scalers: 'set[str]' = <factory>, dependencies: 'dict[str, tuple[Dependency, ...]]' = <factory>, inherited_names: 'set[str]' = <factory>, client_names_seen: 'dict[str, str | None]' = <factory>, uncertain_client_names: 'set[str]' = <factory>, hf_config_constructed: 'bool' = False, framework_context_seen: 'set[str]' = <factory>, outer_symbols: 'dict[str, str]' = <factory>, outer_symbol_kills: 'set[str]' = <factory>, outer_names: 'set[str]' = <factory>)[source]

Bases: object

branch_copy() → Bindings[source]
child_scope() → Bindings[source]
client_names_seen: dict[str, str | None]
dependencies: dict[str, tuple[tuple[str, tuple[str, ...]], ...]]
factories: dict[str, _RecognizedReceiver]
findings: list[dict]
framework_context_seen: set[str]
hf_config_constructed: bool = False
inherited_names: set[str]
instances: dict[str, str]
nested_scope() → Bindings[source]
optimizers: set[str]
outer_names: set[str]
outer_symbol_kills: set[str]
outer_symbols: dict[str, str]
path: str = '.'
rebind(name: str) → None[source]
redact: bool = True
scalers: set[str]
subclasses: dict[str, str]
symbols: dict[str, str]
uncertain_client_names: set[str]
analyze_tree(tree: Module, path: str, *, is_job_py: bool, findings: list[dict], redact: bool = True) → FileFacts[source]
ownership(scan: SourceScan) → dict[source]