microprobe.utils.imp

microprobe.utils.imp module

Functions

find_subclasses(module_str, clazz[, ...])

param module_str:

get_all_subclasses(cls)

get_attr_from_module(attr, module)

param clsname:

get_dict_from_module(module)

param clsname:

get_object_from_module(clsname, module)

param clsname:

import_cls_definition(isadef, yaml, key, ...)

param isadef:

import_definition(defdict, yaml, key, ...[, ...])

Import definition

import_operand_definition(defdict, yaml, ...)

param defdict:

load_source(name, path)




Functions

find_subclasses(module_str, clazz, extra_import_name=None)[source]
Parameters:
  • module_str

  • clazz

  • extra_import_name – (Default value = None)

get_all_subclasses(cls)[source]
get_attr_from_module(attr, module)[source]
Parameters:
  • clsname

  • module

get_dict_from_module(module)[source]
Parameters:
  • clsname

  • module

get_object_from_module(clsname, module)[source]
Parameters:
  • clsname

  • module

import_cls_definition(isadef, yaml, key, base_module)[source]
Parameters:
  • isadef

  • yaml

  • key

  • base_module

import_definition(defdict, yaml, key, base_module, args, force=False)[source]

Import definition

Parameters:
  • defdict

  • yaml

  • key

  • base_module

  • args

import_operand_definition(defdict, yaml, key, base_module, regs, force=False)[source]
Parameters:
  • defdict

  • yaml

  • key

  • base_module

  • regs

load_source(name, path)[source]