Oh to my surprise LakeFS high level python sdk use...
# help
i
Oh to my surprise LakeFS high level python sdk used pydantic V1, can you guys please bump the dependency there? I am trying to upgrade our whole internal library to use pydantic v2
e
Hi @Ion, AFAIK we've discussed this in the team and this upgrade should be coming to the HL SDK sometime in the near future. Sorry, but we can't currently commit to a specific timeline AFAIK
i
Hmm I see, do the other SDKs have this pydantic V1 only limitation?
e
No, I don't think that they do... the other SDK is generated by an OpenAPI generator
i
Alright, from the other SDKs which one would be preferred to be used
n
@Ion the pydantic restriction comes from the Open API autogenerated client. Since the HL SDK wraps it we are limited to this pydantic version. Investigation is required to understand what kind of work needs to be done in order to upgrade the version and will probably require a wider change than it seems
i
@Niro which package is that? Datamodel-code-generator?
It says it supports pydantic v2
n
I'm not certain, as I said previously we need to look into it. If you already looked and it seems straightforward to you, we always welcome contribution 😀
i
Yeah I don't really see how you guys generate the pydantic models from an Openapi file, but if it's 'datamodel-code-generator' the support is already there
n
You can find it here
i
@Niro so the generator you guys use already supports pydantic v2
n
That's great, though upgrading to the new version might introduce breaking changes. We need to be careful with this
i
But it's still a 0.x version SDK, right? :)
In general pydantic 1 -> 2 is many breaking changes, so better earlier than later to pull off the band-aid 😄
n
True, I will check with the team next week and see what we can do
❤️ 1
i
Awesome, thanks a lot!👌
n
With pleasure
@Ion wanted to update you that I'm actively looking into this
🤟 1
i
Great, thanks!!😇