Category: Python
11 Posts
Python: Count and Group Data More Compactly with Counter and defaultdict in 5 Minutes
Python: Write Professional CLIs with argparse — Stop Parsing sys.argv by Hand in 5 Minutes
Python: Handle Time Zones Correctly with zoneinfo — End Naive/Aware Errors in 5 Minutes
Python: Replace Long if/elif Chains with the match Statement — Pattern Matching in 5 Minutes
Python: Write Context Managers with @contextmanager — Resources Always Closed, No Long Classes
Python: Replace os.path with pathlib — Read, Write, and Browse Files More Concisely in 5 Minutes
Python: Call Multiple APIs in Parallel with asyncio.gather and Semaphore in 10 Minutes
Python: Write Data-Holding Classes 70% Shorter with @dataclass in 5 Minutes
