pyo3 icon indicating copy to clipboard operation
pyo3 copied to clipboard

Export Rust traits as Abstract Base Classes (ABCs) on Python

Open marioortizmanero opened this issue 5 years ago • 3 comments

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.

marioortizmanero avatar Sep 15 '20 14:09 marioortizmanero

Any update on this?

leoleoasd avatar Mar 25 '22 08:03 leoleoasd