pyo3 icon indicating copy to clipboard operation
pyo3 copied to clipboard

Support automatic conversion from Uuid (as optional feature)

Open Hooksie opened this issue 1 year ago • 1 comments

I am implementing types for database objects which use UUIDs as primary keys, from the uuid crate. I noticed there is no automatic conversion for these types to the Python UUID type. Therefor, a pyclass with a UUID field requires a wrapper type.

Given the current features for chrono and decimal, it seems natural to add a uuid feature that implements the type conversion (in this case, similar to the decimal implementation specifically).

If there's interest, I'll take a shot at this. Feels like there's enough prior art in rust_decimal

Hooksie avatar Jul 19 '24 20:07 Hooksie

I think this seems like a reasonable additional optional feature. 👍

davidhewitt avatar Jul 21 '24 12:07 davidhewitt

Hi, I would like to continue the implementation of this feature, taking into account the previous feedback provided. Would it be possible for me to work on this? Thanks

JeanArhancet avatar Jan 04 '25 09:01 JeanArhancet

We have #4371 which stalled out about 6 months ago, I think you're very welcome to continue where that left off.

davidhewitt avatar Jan 04 '25 11:01 davidhewitt

Implemented in #4864

Icxolu avatar Jan 22 '25 21:01 Icxolu