nautilus_common/python/
mod.rspub mod clock;
pub mod custom;
pub mod enums;
pub mod handler;
pub mod logging;
pub mod msgbus;
pub mod signal;
pub mod timer;
use pyo3::prelude::*;
#[pymodule]
pub fn common(_: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> {
m.add_class::<crate::custom::CustomData>()?;
m.add_class::<crate::signal::Signal>()?;
m.add_class::<crate::python::clock::TestClock_Py>()?;
m.add_class::<crate::python::clock::LiveClock_Py>()?;
m.add_class::<crate::msgbus::MessageBus>()?;
m.add_class::<crate::msgbus::MessageBus>()?;
m.add_class::<crate::msgbus::database::BusMessage>()?;
m.add_class::<crate::python::handler::PythonMessageHandler>()?;
m.add_class::<crate::enums::ComponentState>()?;
m.add_class::<crate::enums::ComponentTrigger>()?;
m.add_class::<crate::enums::LogColor>()?;
m.add_class::<crate::enums::LogLevel>()?;
m.add_class::<crate::enums::LogFormat>()?;
m.add_class::<crate::logging::logger::LoggerConfig>()?;
m.add_class::<crate::logging::logger::LogGuard>()?;
m.add_class::<crate::logging::writer::FileWriterConfig>()?;
m.add_function(wrap_pyfunction!(logging::py_init_tracing, m)?)?;
m.add_function(wrap_pyfunction!(logging::py_init_logging, m)?)?;
m.add_function(wrap_pyfunction!(logging::py_logger_log, m)?)?;
m.add_function(wrap_pyfunction!(logging::py_log_header, m)?)?;
m.add_function(wrap_pyfunction!(logging::py_log_sysinfo, m)?)?;
m.add_function(wrap_pyfunction!(
logging::py_logging_clock_set_static_mode,
m
)?)?;
m.add_function(wrap_pyfunction!(
logging::py_logging_clock_set_realtime_mode,
m
)?)?;
m.add_function(wrap_pyfunction!(
logging::py_logging_clock_set_static_time,
m
)?)?;
Ok(())
}