This commit is contained in:
Wim Pomp
2025-04-28 20:38:21 +02:00
parent b5e583f760
commit 2c5e1ffa9e
21 changed files with 28545 additions and 0 deletions

13
src/py.rs Normal file
View File

@@ -0,0 +1,13 @@
use crate::Ome;
use pyo3::prelude::*;
#[pymodule]
#[pyo3(name = "ome_metadata_rs")]
fn ome_metadata_rs(m: &Bound<'_, PyModule>) -> PyResult<()> {
#[pyfn(m)]
fn ome(text: &str) -> PyResult<Ome> {
Ok(text.parse()?)
}
Ok(())
}