pysnt.converters.core module#
Core utilities and base classes for the converters module.
This module provides the foundation layer for all converter functionality, including constants, factory functions, helper utilities, and base classes. It has no internal dependencies and only imports external libraries.
- has_pandasgui()[source]#
Check if pandasgui is available without triggering import.
- Returns:
True if pandasgui is available, False otherwise
- Return type:
bool
- class SNTObject[source]#
Bases:
TypedDictA structured container for SNT converted objects.
This TypedDict defines the structure for python converted objects that encapsulate converted data along with its type information, metadata, and potential convertion error state.
- type#
The Python type of the data being stored.
- Type:
Type
- data#
The actual converted data.
- Type:
Any
- metadata#
A dictionary containing additional information about the converted object (e.g., source identifiers or processing flags).
- Type:
Dict[str, Any]
- error#
An exception object if an error occurred during object convertion (which typically means data is None), None otherwise.
- Type:
Exception | None
- type: Type#
- data: Any#
- metadata: Dict[str, Any]#
- error: Exception | None#
- class JavaTypeDetector[source]#
Bases:
objectCentralized Java type detection utilities.
- static has_class_name(obj: Any, *names: str) bool[source]#
Check if object’s class name contains any of the given strings.