awesome-python icon indicating copy to clipboard operation
awesome-python copied to clipboard

add pydantic

Open norweeg opened this issue 4 years ago • 15 comments

What is this Python project?

Data validation and settings management using Python type hinting.

What's the difference between this Python project and similar ones?

  • Pure Python
  • Intended as a supplement to standard library dataclasses and typing modules

--

Anyone who agrees with this pull request could submit an Approve review to it.

norweeg avatar Jan 22 '21 15:01 norweeg

Additional info: fastapi use it inside and fastapi recommend users to use it in tutorial. https://fastapi.tiangolo.com/tutorial/sql-databases/ They seem to have similar contributers.

yhay81 avatar Jan 25 '21 02:01 yhay81

Pydantic is so good and ubiquitous it actually deserves to be into multiple categories:

  • Built-in Classes Enhancement (included in this PR)
  • Configuration
  • Data Validation
  • Serialization

I would go as far as suggest that once pydantic 2 is out and turns out to be better than pydantic 1, it should be made part of standard python library.

dorinclisu avatar May 22 '21 11:05 dorinclisu

Approve

Can't believe this isn't already on the list, it's one of the best libraries out there.

blakev avatar May 24 '21 17:05 blakev

Approve

Pydantic should be part of the Python standard library :-)

danieleteti avatar May 31 '21 14:05 danieleteti

Approved.. long back!!

I personally think pydantic is an amazing package but not something we need as a part of Python's standard library!!!! I use pydantic a lot but it must be something we could add only if we need!!

shashankrnr32 avatar Jun 03 '21 14:06 shashankrnr32

Approve

MartinThoma avatar Apr 22 '22 05:04 MartinThoma

It's probably a waste of time. This repo has not added a new entry in years.

erezsh avatar Apr 22 '22 07:04 erezsh

@erezsh actually there is contribution guide line: 'Pull requests will be merged when their votes reach 20.'

we have only 15 here

cybergrind avatar Oct 31 '22 19:10 cybergrind

@erezsh actually there is contribution guide line: 'Pull requests will be merged when their votes reach 20.'

we have only 15 here

+1

aspatari avatar Oct 31 '22 19:10 aspatari

@cybergrind That's rich! Lark is at 30 and still hasn't made it in - https://github.com/vinta/awesome-python/pull/1731

erezsh avatar Oct 31 '22 19:10 erezsh

yeah, you're right

cybergrind avatar Oct 31 '22 19:10 cybergrind

20

aspatari avatar Oct 31 '22 20:10 aspatari

@vinta pydantic now also has 20, let's get it merged

cybergrind avatar Oct 31 '22 20:10 cybergrind

Approved since pydantic definitely offers class enhancements, but I think really it would be a better fit for the "data validation" section.

@vinta - thanks so much for awesome-python, it's ... awesome, could we get this or #2462 approved?

samuelcolvin avatar May 03 '23 22:05 samuelcolvin

@samuelcolvin I think I grouped it here because the association with dataclasses, but in retrospect that doesn't make sense and I agree. I will move it

norweeg avatar May 04 '23 13:05 norweeg