
Python Dataclasses Explained: Concepts, Code, and Real-World Use
A practical guide to Python Dataclasses, covering PEP 557, generated special methods, field(), default values, __post_init__, immutability, comparisons, slots, and practical use cases.
All posts under category "Python"

A practical guide to Python Dataclasses, covering PEP 557, generated special methods, field(), default values, __post_init__, immutability, comparisons, slots, and practical use cases.

Explore custom validators, model_config, nested models, Annotated, computed_field, discriminated unions, aliases, generics, and Pydantic Settings through a practical order-processing project.

An introduction to Pydantic V2 covering its core concepts, installation with uv, basic models, automatic type validation, and a real-world API payload validation example.

Understand how async/await works in Python: I/O-bound vs CPU-bound, Event Loop, coroutines, Tasks, concurrency vs parallelism, Semaphore, aiometer, and practical sync vs async examples.

A complete guide to uv, the tool that replaces pip, poetry, pyenv, and pipx in a single command. Learn in practice how to create projects, manage dependencies, Python versions, and global tools — dramatically faster.

Learn what magic numbers are in Python, why they harm your code, and how to replace them with meaningful constants. A beginner-friendly guide with practical examples.
Enter keywords to search articles