filmov
tv
Which Python @dataclass is best? Feat. Pydantic, NamedTuple, attrs...
Показать описание
Get rid of boilerplate in writing classes.
Which dataclass alternative should you use though? In this video we test dataclasses, attrs, tuple, namedtuple, NamedTuple, dict, SimpleNamespace, and Pydantic BaseModel for speed, memory efficiency, and features.
SUPPORT ME ⭐
---------------------------------------------------
Top patrons and donors: Jameson, Laura M, Dragos C, Vahnekie, John Martin, Casey G, Pieter G, Krisztian M, Sigmanificient
BE ACTIVE IN MY COMMUNITY 😄
---------------------------------------------------
CHAPTERS
---------------------------------------------------
0:00 Intro
1:04 dataclass
1:24 attrs
2:13 tuple, namedtuple, NamedTuple
4:05 dict
4:39 SimpleNamespace
4:58 Pydantic
6:39 Speed comparison
8:41 Memory comparison
9:15 Feature matrix and winners
Which dataclass alternative should you use though? In this video we test dataclasses, attrs, tuple, namedtuple, NamedTuple, dict, SimpleNamespace, and Pydantic BaseModel for speed, memory efficiency, and features.
SUPPORT ME ⭐
---------------------------------------------------
Top patrons and donors: Jameson, Laura M, Dragos C, Vahnekie, John Martin, Casey G, Pieter G, Krisztian M, Sigmanificient
BE ACTIVE IN MY COMMUNITY 😄
---------------------------------------------------
CHAPTERS
---------------------------------------------------
0:00 Intro
1:04 dataclass
1:24 attrs
2:13 tuple, namedtuple, NamedTuple
4:05 dict
4:39 SimpleNamespace
4:58 Pydantic
6:39 Speed comparison
8:41 Memory comparison
9:15 Feature matrix and winners
Which Python @dataclass is best? Feat. Pydantic, NamedTuple, attrs...
Python dataclasses will save you HOURS, also featuring attrs
Attrs, Pydantic, or Python Data Classes?
Python Data Classes Are AMAZING! Here's Why
This Is Why Python Data Classes Are Awesome
Why I prefer attrs over dataclasses
Python Dataclass Best Practices (and why you should use them)
How I Organize Data In Python with Dataclasses
Are Dataclasses Better Than Dictionaries in Python
Data Classes in Python Are The New Standard
A Simple & Effective Way To Improve Python Class Performance
A Deep Dive into Python's Dataclasses (Part 1)
Save TONS of time with Python Dataclasses
Functions vs Classes: When to Use Which and Why?
If You’re Not Using Python DATA CLASSES Yet, You Should 🚀
How To Use: '@dataclass' In Python (Tutorial 2023)
Python dataclasses : field options in dataclasses
Data Classes In Less Than A Minute // Python Tips
Learn How Python Data Classes Can Save Your Time In Projects
Dataclasses in python 3.7
Do We Still Need Dataclasses? // PYDANTIC Tutorial
Data classes are Perfect after learning OOP
Python dataclasses: Understanding why we need dataclasses
Python DATACLASS is KING! #python #coding #programming
Комментарии