klaviyo-api-python icon indicating copy to clipboard operation
klaviyo-api-python copied to clipboard

Pydantic v2 compatibility

Open pjmv opened this issue 1 year ago • 10 comments

Hi klaviyo devs :wave:

My app server relies on some features of pydantic only available in v > 2.0, which yields incompatibility issues with the klaviyo client. Is pydantic v2 compatibility anywhere on the roadmap ?

Thanks !

pjmv avatar Jan 16 '24 11:01 pjmv

Improving the type support for Python is on the roadmap.

Ian-Montgomery-Klaviyo avatar Jan 17 '24 20:01 Ian-Montgomery-Klaviyo

Also blocked by this. I would like to use another package that depends on pydantic > 2

AlexJMohr avatar Mar 12 '24 21:03 AlexJMohr

Improving the type support for Python is on the roadmap.

any idea to when that would be?

davideagle avatar Mar 13 '24 23:03 davideagle

this is a also an issue for our team

t16n avatar Mar 28 '24 09:03 t16n

also missing pydantic v2 note that you can still keep using v1 while v2 is installed:

from pydantic.v1 import BaseModel

matanper avatar Apr 11 '24 16:04 matanper

any update on this issue? @jon-batscha @klaviyo-sdk

ivanarena avatar Apr 12 '24 13:04 ivanarena

Hey, do you have any updates on that? It's also quite a challenge for our team

Solarden avatar Apr 18 '24 07:04 Solarden

Same here, really frustrating to rewrite a lot of code to use the REST api directly instead.

erandagan avatar May 02 '24 12:05 erandagan

+1 - we've began migrating off the SDK to call the API directly because of this.

jasonsbrooks avatar May 14 '24 09:05 jasonsbrooks

hello! @jasonsbrooks @erandagan @Solarden @ivanarena @matanper @pjmv @t16n @davideagle @AlexJMohr we've just released v8.0.0 which has Pydantic V2 compatibility https://github.com/klaviyo/klaviyo-api-python/releases/tag/v8.0.0

sanfordj avatar May 15 '24 17:05 sanfordj