pyo3
pyo3 copied to clipboard
Export Rust traits as Abstract Base Classes (ABCs) on Python
It would be an interesting feature to be able to export traits from Rust to Python, perhaps with a #[pytrait] macro, or with some modification to #[pyclass]. I think this could be best solved with Python's Abstract Base Classes.
When this was proposed on gitter, @davidhewitt suggested that this should be experimented in a new crate, which could later be merged into pyo3 if it's popular and stable enough.
I personally won't be able to work on this for now, so I'm opening this to have the tracking issue and in case someone wants to give it a try.
Any update on this?