ome-metadata 0.1.0

Ome metadata as a rust/python structure.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
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(())
}