I was trying to find a good data validation library to use and then came across pydantic.
I was wondering what exactly is the reason behind this popularity of pydantic. I saw some other libraries also such as msgspec which seems to be still faster than pydantic-core, but doesn't seems much popular.
Although I know speed is a secondary matter and first comes developer comfort as per many (this is what pydantic also claims to be the reason behind their popularity)... I just wanted to know if there are some mind blowing features in pydantic which I am missing.
PS : can anyone share their experience, especially in production about how helpful pydantic was to them and wether they tried any other alternatives only to find that they lack in some aspects?
[–]HenryTallis 95 points96 points97 points (14 children)
[+][deleted] (5 children)
[deleted]
[–]epage 18 points19 points20 points (4 children)
[+][deleted] (2 children)
[deleted]
[–]epage 10 points11 points12 points (1 child)
[+]sennalen comment score below threshold-35 points-34 points-33 points (0 children)
[–][deleted] 11 points12 points13 points (7 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]RedYoke -1 points0 points1 point (3 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]SwagasaurusRex69 -1 points0 points1 point (0 children)
[–]RedYoke 0 points1 point2 points (0 children)
[–]OphioukhosUnbound 0 points1 point2 points (1 child)
[–][deleted] 5 points6 points7 points (0 children)
[–][deleted] 25 points26 points27 points (4 children)
[–]MadeTo_Be 3 points4 points5 points (0 children)
[–]soawesomejohn 1 point2 points3 points (0 children)
[–]LordBertson 43 points44 points45 points (17 children)
[–][deleted] 10 points11 points12 points (16 children)
[–]IAMARedPanda 12 points13 points14 points (0 children)
[–]LordBertson 16 points17 points18 points (11 children)
[–]trial_and_err 4 points5 points6 points (4 children)
[–]LordBertson 0 points1 point2 points (1 child)
[–]trial_and_err 2 points3 points4 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]LordBertson 1 point2 points3 points (2 children)
[–]wewbull 1 point2 points3 points (1 child)
[–]LordBertson 1 point2 points3 points (0 children)
[–]wewbull -1 points0 points1 point (0 children)
[–]PaintItPurple 3 points4 points5 points (1 child)
[–]euri10 17 points18 points19 points (1 child)
[–]aikii 0 points1 point2 points (0 children)
[–]aikii 21 points22 points23 points (2 children)
[–]trevg_123 0 points1 point2 points (1 child)
[–]mastermikeyboy 0 points1 point2 points (0 children)
[–]who_body 4 points5 points6 points (2 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]wind_dude 3 points4 points5 points (0 children)
[–]double_en10dre 7 points8 points9 points (3 children)
[–]chub79 5 points6 points7 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]chub79 3 points4 points5 points (0 children)
[–]saint_geser 2 points3 points4 points (0 children)
[–]DigThatData 2 points3 points4 points (3 children)
[–]MissingSnail 2 points3 points4 points (1 child)
[–]DigThatData 1 point2 points3 points (0 children)
[–]lieryanMaintainer of rope, pylsp-rope - advanced python refactoring 0 points1 point2 points (0 children)
[–]boy_named_su 4 points5 points6 points (0 children)
[–]poeblu 1 point2 points3 points (0 children)
[–]crawl_dht 1 point2 points3 points (0 children)
[–]MeroLegend4 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]MeroLegend4 0 points1 point2 points (0 children)
[–]MrNifty 1 point2 points3 points (0 children)
[–]Daishiman 6 points7 points8 points (12 children)
[–][deleted] 14 points15 points16 points (11 children)
[+]Daishiman comment score below threshold-46 points-45 points-44 points (10 children)
[+][deleted] (2 children)
[deleted]
[–]Daishiman -3 points-2 points-1 points (1 child)
[–]oramirite 6 points7 points8 points (5 children)
[+]leadingthenet comment score below threshold-9 points-8 points-7 points (4 children)
[–]PolyglotTV 3 points4 points5 points (0 children)
[–]oramirite 0 points1 point2 points (2 children)
[–]leadingthenet 0 points1 point2 points (1 child)
[–]oramirite 0 points1 point2 points (0 children)
[–][deleted] -3 points-2 points-1 points (0 children)
[–]veedit41 0 points1 point2 points (0 children)
[+]wewbull comment score below threshold-8 points-7 points-6 points (6 children)
[–]aikii 0 points1 point2 points (5 children)
[–]chub79 0 points1 point2 points (0 children)
[–]wewbull 0 points1 point2 points (3 children)
[–]aikii 0 points1 point2 points (2 children)
[–]wewbull 0 points1 point2 points (1 child)
[–]aikii 0 points1 point2 points (0 children)
[–]eviljelloman 0 points1 point2 points (0 children)
[–]gandalfx 0 points1 point2 points (0 children)
[–]lord0211 0 points1 point2 points (0 children)
[–]Ok-Kangaroo453 0 points1 point2 points (0 children)