Giter Club home page Giter Club logo

Comments (9)

Faolain avatar Faolain commented on June 11, 2024 6

Completely agree, we want to migrate to the prisma client but this is currently a dealbreaker as we use pydantic 2 in the rest of our application :/

from prisma-client-py.

vivekashok1221 avatar vivekashok1221 commented on June 11, 2024 5

fastapi==0.100.0 still supports pydantic v1. However, it'd be nice if prisma-client-py supported pydantic v2. FastAPI will deprecate pydantic v1 in the future.

from prisma-client-py.

RobertCraigie avatar RobertCraigie commented on June 11, 2024 3

Hey all, sorry for the delay here. I unfortunately haven't been able to spend much time working on Prisma Python recently.

However this is the highest priority item for me, I'll try and get support out as soon as possible. Please note that this will take a lot of work as we use Pydantic extensively throughout the library & rely on features that have been changed fundamentally in v2. You can track my progress in #763.

The auto-migration tool is sadly not very helpful as I want to maintain support for Pydantic v1 & it doesn't help with that.

from prisma-client-py.

Oblynx avatar Oblynx commented on June 11, 2024 3

Understood, thanks for all the effort you're putting into this in the first place! You've made a very useful tool.

from prisma-client-py.

RobertCraigie avatar RobertCraigie commented on June 11, 2024 2

Support for v2 has been released in v0.10.0, please give it a try and let me know if you run into any issues!

from prisma-client-py.

Oblynx avatar Oblynx commented on June 11, 2024 1

Wow, this was fast! I'll see if it works out of the box for our tests.

from prisma-client-py.

Oblynx avatar Oblynx commented on June 11, 2024

Indeed, this is a big issue for us too. @RobertCraigie if you get a moment to think about this, how much work do you think it will take? Plz let us know also what priority this has for you.

from prisma-client-py.

Oblynx avatar Oblynx commented on June 11, 2024

Some points from the migration guide:

from prisma-client-py.

RunOrVeith avatar RunOrVeith commented on June 11, 2024

We also need this, as langchain will deprecate support for pydantic v1 on 25th of august

from prisma-client-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.