Skip to content

service

dandy.intel.service

IntelService

Bases: BaseService['dandy.intel.mixin.IntelServiceMixin']

Source code in dandy/core/service/service.py
def __init__(self, obj: T_co) -> None:
    self.recorder_event_id = generate_recorder_event_id()
    self.obj = obj

    self.__post_init__()

intel_class_from_callable_signature staticmethod

Source code in dandy/intel/service.py
@staticmethod
def intel_class_from_callable_signature(
    callable_: Callable,
) -> Type[BaseIntel]:
    return IntelFactory.callable_signature_to_intel_class(callable_)

intel_class_from_simple_json_schema staticmethod

Source code in dandy/intel/service.py
@staticmethod
def intel_class_from_simple_json_schema(
    simple_json_schema: dict | str,
) -> type[BaseIntel]:
    return IntelFactory.simple_json_schema_to_intel_class(simple_json_schema)

json_str_to_intel_object staticmethod

Source code in dandy/intel/service.py
@staticmethod
def json_str_to_intel_object(
    json_str: str,
    intel: BaseIntel | type[BaseIntel],
) -> BaseIntel:
    return IntelFactory.json_str_to_intel_object(json_str=json_str, intel=intel)

reset

Source code in dandy/intel/service.py
def reset(self):
    pass