nautilus_common/python/
mod.rs#![allow(warnings)] pub mod clock;
pub mod enums;
pub mod handler;
pub mod logging;
pub mod msgbus;
pub mod timer;
pub mod versioning;
use pyo3::prelude::*;
#[pymodule]
pub fn common(_: Python<'_>, m: &PyModule) -> PyResult<()> {
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)?)?;
Ok(())
}