pyo3_pytests/
consts.rs

1use pyo3::pymodule;
2
3#[pymodule]
4pub mod consts {
5    #[pymodule_export]
6    pub const PI: f64 = std::f64::consts::PI; // Exports PI constant as part of the module
7
8    #[pymodule_export]
9    pub const SIMPLE: &str = "SIMPLE";
10}
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here