Why I prefer attrs over dataclasses
62.3 هزار بار بازدید -
12 ماه پیش
-
Better Python dataclasses!Attrs is the
Better Python dataclasses!
Attrs is the original dataclass library. Literally, the standard library "dataclasses" module was based off of attrs. They are very similar in their main functionality, but I personally find attrs to be more and more preferred.
― mCoding with James Murphy (https://mcoding.io)
Source code: https://github.com/mCodingLLC/VideosS...
Dataclasses: https://docs.python.org/3/library/dat...
Attrs: https://www.attrs.org/en/stable/
SUPPORT ME ⭐
---------------------------------------------------
Sign up on Patreon to get your donor role and early access to videos!
Patreon: mCoding
Feeling generous but don't have a Patreon? Donate via PayPal! (No sign up needed.)
https://www.paypal.com/donate/?hosted...
Want to donate crypto? Check out the rest of my supported donations on my website!
https://mcoding.io/donate
Top patrons and donors: Jameson, Laura M, Dragos C, Vahnekie, Neel R, Matt R, Johan A, Casey G, Mark M, Mutual Information, Pi
BE ACTIVE IN MY COMMUNITY 😄
---------------------------------------------------
Discord: Discord: discord
Github: https://github.com/mCodingLLC/
Reddit: Reddit: mCoding
Facebook: Facebook: james.mcoding
CHAPTERS
---------------------------------------------------
0:00 Intro
0:20 Dataclass-like tools
2:38 Why attrs over dataclasses?
3:06 Better defaults
4:19 Independent versioning
5:08 Features
Attrs is the original dataclass library. Literally, the standard library "dataclasses" module was based off of attrs. They are very similar in their main functionality, but I personally find attrs to be more and more preferred.
― mCoding with James Murphy (https://mcoding.io)
Source code: https://github.com/mCodingLLC/VideosS...
Dataclasses: https://docs.python.org/3/library/dat...
Attrs: https://www.attrs.org/en/stable/
SUPPORT ME ⭐
---------------------------------------------------
Sign up on Patreon to get your donor role and early access to videos!
Patreon: mCoding
Feeling generous but don't have a Patreon? Donate via PayPal! (No sign up needed.)
https://www.paypal.com/donate/?hosted...
Want to donate crypto? Check out the rest of my supported donations on my website!
https://mcoding.io/donate
Top patrons and donors: Jameson, Laura M, Dragos C, Vahnekie, Neel R, Matt R, Johan A, Casey G, Mark M, Mutual Information, Pi
BE ACTIVE IN MY COMMUNITY 😄
---------------------------------------------------
Discord: Discord: discord
Github: https://github.com/mCodingLLC/
Reddit: Reddit: mCoding
Facebook: Facebook: james.mcoding
CHAPTERS
---------------------------------------------------
0:00 Intro
0:20 Dataclass-like tools
2:38 Why attrs over dataclasses?
3:06 Better defaults
4:19 Independent versioning
5:08 Features
12 ماه پیش
در تاریخ 1402/04/12 منتشر شده
است.
62,340
بـار بازدید شده