The BEST Python package EVER 👩‍💻🐍 #tech #coder #technology #developer #python #software

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

python programmers when they discovered types

AnnasVirtual
Автор

I only use Python for data analysis at this point.

christianremboldt
Автор

I don't know why I remembered peter griffin saying : shallow and pydantic

baelhadjhadjaissa
Автор

I don't start any python project without switching to a useful language.

AndrewARitz
Автор

The best thing about declaring models is that you find out your data source is crazy and that you have a lot of entries that don't match what you expected. Have fun. And then once you realize you can't get pedantic about it (because it's not your data and you need it) just go back to dealing with it in code

dsracoon
Автор

Dataclasses do the same things and are part of the standard library. I would never tie a library so tightly with the the business core logic.

electronicmag
Автор

Even though pydantic is really cool it only makes sense when you have to serialize/deserialize data. Otherwise dataclasses make more sense and are probably faster

rasputunga
Автор

Python users when they realize programming is about data structures and not just calling premade algorithms on premade data that is displayed on premade application ui

aboliguu
Автор

Im a fastapi developer myself I know how good is pydantic especially for json validation

suhasm
Автор

Love it when python devs discover type safety

meph
Автор

Migration from Pydantic 1.x to 2.x when using more complex features is really painfull...

SuperDaroG
Автор

Ok
I'm not a Python developer yet but I'll be soon.
What are the uses of this package with respect to web developers, let's say one is using Django as the backend.

chivicks_hazard
Автор

But...why? Why use static typing in a dynamic typing language?

I'd rather handle the serialization manually than do that - because sometimes I'm more than willing to be flexible with the type (Like int/float/double, or even with converting from a string/dict/list.). This seems wildly unnecessary.

ZTST
Автор

At this point just use an actual programming language with types 🤣

juaninfante
Автор

Ok, but mistake was made. You can avoid Key errors like this:

dct = { 'name': 'Someone',
'age': 32,
}

if 'balance' not in dct:
dct['balance'] = 0

print(dct['balance'])
# if we add 'balance' to dict we will still get the right value

essik
Автор

But pydantic is not fast. Atleast it is not as fast as other types in py

reold
Автор

Anyone remember "Raptor" programming?

ttv_timetempest
Автор

Thanks i was wonderinf what the hell that was

ravenecho
Автор

Ok but which vs code theme are you using

shayantriedcoding
Автор

this looks like a dynamic documentor

will checkout pydantic

borntodoit
join shbcf.ru