python attrs

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2023 Jun 5 4:16
Editor
Edited
Edited
2024 Feb 29 5:7

Uses
Python __slots__
as default

powerful dataclass
python attrs members
 
 
 
 
 
 
Why I prefer attrs over dataclasses
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/VideosSampleCode Dataclasses: https://docs.python.org/3/library/dataclasses.html Attrs: https://www.attrs.org/en/stable/ SUPPORT ME ⭐ --------------------------------------------------- Sign up on Patreon to get your donor role and early access to videos! https://patreon.com/mCoding Feeling generous but don't have a Patreon? Donate via PayPal! (No sign up needed.) https://www.paypal.com/donate/?hosted_button_id=VJY5SLZ8BJHEE 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: https://discord.gg/Ye9yJtZQuN Github: https://github.com/mCodingLLC/ Reddit: https://www.reddit.com/r/mCoding/ Facebook: https://www.facebook.com/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
Why I prefer attrs over dataclasses
 
 
 

Recommendations