tbapi.api.python_interop_service

 1from __future__ import annotations
 2from typing import TYPE_CHECKING
 3from tbapi.common.decorators import tb_class, tb_interface
 4from tbapi.common.converters import to_python_datetime, to_net_datetime
 5from datetime import datetime
 6from Tickblaze.Python.Scripts.Api import PythonInteropService as _PythonInteropService
 7from typing import Any, overload
 8from abc import ABC, abstractmethod
 9
10@tb_class(_PythonInteropService)
11class PythonInteropService():
12    """This class is invoked directly from Python via PythonNet.      Do not remove or modify its constructors or method signatures,      as this will break interop with the Python side."""
13
14    @overload
15    @staticmethod
16    def new() -> "PythonInteropService":
17        """Constructor overload with arguments: """
18        ...
19    @staticmethod
20    def new(*args, **kwargs):
21        """Generic factory method for PythonInteropService. Use overloads for IDE type hints."""
22        return PythonInteropService(*args, **kwargs)
23
24
25    @staticmethod
26    def create_wrapper_instance(module_file_path: str, class_name: str, script: Any = None) -> Any:
27        result = _PythonInteropService.CreateWrapperInstance(module_file_path, class_name, script)
28        return result
29  
30    @staticmethod
31    def try_invoke_post_init(target: Any) -> None:
32        result = _PythonInteropService.TryInvokePostInit(target)
33        return result
34  
@tb_class(_PythonInteropService)
class PythonInteropService:
18@tb_class(_PythonInteropService)
19class PythonInteropService():
20    """This class is invoked directly from Python via PythonNet.      Do not remove or modify its constructors or method signatures,      as this will break interop with the Python side."""
21
22    @overload
23    @staticmethod
24    def new() -> "PythonInteropService":
25        """Constructor overload with arguments: """
26        ...
27    @staticmethod
28    def new(*args, **kwargs):
29        """Generic factory method for PythonInteropService. Use overloads for IDE type hints."""
30        return PythonInteropService(*args, **kwargs)
31
32
33    @staticmethod
34    def create_wrapper_instance(module_file_path: str, class_name: str, script: Any = None) -> Any:
35        result = _PythonInteropService.CreateWrapperInstance(module_file_path, class_name, script)
36        return result
37  
38    @staticmethod
39    def try_invoke_post_init(target: Any) -> None:
40        result = _PythonInteropService.TryInvokePostInit(target)
41        return result

This class is invoked directly from Python via PythonNet. Do not remove or modify its constructors or method signatures, as this will break interop with the Python side.

PythonInteropService(*args, **kwargs)
162        def __init__(self, *args, **kwargs):
163            pass
@staticmethod
def new(*args, **kwargs):
27    @staticmethod
28    def new(*args, **kwargs):
29        """Generic factory method for PythonInteropService. Use overloads for IDE type hints."""
30        return PythonInteropService(*args, **kwargs)

Generic factory method for PythonInteropService. Use overloads for IDE type hints.

@staticmethod
def create_wrapper_instance(module_file_path: str, class_name: str, script: Any = None) -> Any:
33    @staticmethod
34    def create_wrapper_instance(module_file_path: str, class_name: str, script: Any = None) -> Any:
35        result = _PythonInteropService.CreateWrapperInstance(module_file_path, class_name, script)
36        return result
@staticmethod
def try_invoke_post_init(target: Any) -> None:
38    @staticmethod
39    def try_invoke_post_init(target: Any) -> None:
40        result = _PythonInteropService.TryInvokePostInit(target)
41        return result