beamds.beam.processor package#
Submodules#
beamds.beam.processor.core module#
- class beamds.beam.processor.core.Pipeline(*args, _store_init_path=None, _save_init_args=True, **kwargs)[source]#
Bases:
Processor
- class beamds.beam.processor.core.Processor(*args, _store_init_path=None, _save_init_args=True, **kwargs)[source]#
Bases:
BeamBase
- class property excluded_attributes: set[str]#
return of list of class attributes should not be saved in the state. override this function to exclude some attributes from the state. @return:
- classmethod from_path(path, skeleton: bool | str = True, init_args: bool | str = True, load_state_kwargs=None, exclude: List | Set = None, overwrite_hparams=None, overwrite_attributes=None, **kwargs)[source]#
- classmethod from_remote(hostname, *args, port=None, black_list: List[str] = None, white_list: List[str] = None, **kwargs)[source]#
- init_args_file = '_init_args'#
- load_state(path=None, state=None, ext=None, exclude: List | Set = None, skeleton: bool | str = False, hparams=True, exclude_hparams=None, overwrite_hparams=None, overwrite_attributes=None, **kwargs)[source]#
- load_state_dict(path, ext=None, exclude: List | Set = None, hparams=True, exclude_hparams=None, overwrite_hparams=None, **kwargs)[source]#
- save_state(path, ext=None, exclude: List | Set = None, skeleton: bool | str = True, init_args: bool | str = False, override=False, blacklist_priority=None, **kwargs)[source]#
- save_state_dict(state, path, ext=None, exclude: List | Set = None, override=False, blacklist_priority=None, **kwargs)[source]#
- skeleton_file = '_skeleton'#
- class property special_state_attributes: set[str]#
return of list of special class attributes that are stored individually in the state and not as part of the skeleton of the instance (i.e. a pickle object). override this function to add more attributes to the state and avoid pickling a large skeleton. @return:
beamds.beam.processor.dispatcher module#
- class beamds.beam.processor.dispatcher.MetaAsyncResult(obj)[source]#
Bases:
object
- property args#
- property get#
- property hex#
- property is_ready#
- property is_success#
- property kwargs#
- property state#
- property str#
- property value#
- class beamds.beam.processor.dispatcher.MetaDispatcher(*args, _store_init_path=None, _save_init_args=True, **kwargs)[source]#
Bases:
BeamBase
- property real_object#
- property routes#
- class beamds.beam.processor.dispatcher.ObjectAttribute(name: str, type: str, description: str = None, signature: Dict[str, str] = None)[source]#
Bases:
object
- description: str = None#
- name: str#
- signature: Dict[str, str] = None#
- type: str#
- class beamds.beam.processor.dispatcher.ObjectInfo(type: str, type_name: str, attributes: dict[str, beamds.beam.processor.dispatcher.ObjectAttribute], hparams: dict, vars_args: list, name: str = None, serialization: str = None, version: str = None, self: beamds.beam.processor.dispatcher.ObjectAttribute = None)[source]#
Bases:
object
- attributes: dict[str, ObjectAttribute]#
- hparams: dict#
- name: str = None#
- self: ObjectAttribute = None#
- serialization: str = None#
- type: str#
- type_name: str#
- vars_args: list#
- version: str = None#