from . import cdr, idl
try:
from ._core import ( __version__,
BytesReader,
BytesTopic,
BytesWriter,
DomainParticipant,
DomainParticipantFactory,
Publisher,
Shape,
ShapeReader,
ShapeTopic,
ShapeWriter,
Subscriber,
)
_CORE_AVAILABLE = True
except ImportError as _core_err: _CORE_AVAILABLE = False
_CORE_IMPORT_ERROR = _core_err
__version__ = "0.0.0+nocore"
def _core_not_available(*_args: object, **_kwargs: object) -> None:
raise ImportError(
"zerodds._core ist nicht kompiliert. Fuehre "
"`maturin develop --features extension-module` im crates/py/ aus.",
) from _CORE_IMPORT_ERROR
class _CoreStub:
def __init_subclass__(cls, **_kw: object) -> None:
_core_not_available()
def __init__(self, *_a: object, **_kw: object) -> None:
_core_not_available()
@staticmethod
def instance() -> None:
_core_not_available()
BytesReader = BytesTopic = BytesWriter = _CoreStub DomainParticipant = DomainParticipantFactory = _CoreStub Publisher = Subscriber = _CoreStub Shape = ShapeReader = ShapeTopic = ShapeWriter = _CoreStub from .idl import ( Array,
Bool,
Bytes,
Float32,
Float64,
Int8,
Int16,
Int32,
Int64,
Optional,
Sequence,
String,
UInt8,
UInt16,
UInt32,
UInt64,
idl_struct,
idl_union,
is_idl_struct,
type_name_of,
)
__all__ = [
"__version__",
"BytesReader",
"BytesTopic",
"BytesWriter",
"DomainParticipant",
"DomainParticipantFactory",
"Publisher",
"Shape",
"ShapeReader",
"ShapeTopic",
"ShapeWriter",
"Subscriber",
"cdr",
"idl",
"idl_struct",
"is_idl_struct",
"type_name_of",
"Bool",
"Bytes",
"Float32",
"Float64",
"Int8",
"Int16",
"Int32",
"Int64",
"String",
"UInt8",
"UInt16",
"UInt32",
"UInt64",
"Array",
"Optional",
"Sequence",
"idl_union",
]