Posts in Python

groupby + attrgetter: The Pythonic Way to Group Objects

Blog Post Publish Date: 2025/07/28

This blog post shows how to group objects by several attributes. It uses two standard library tools, itertools.groupby and operator.attrgetter, instead of building a dictionary of lists by hand. It also covers the one detail that trips most people up: groupby only groups items that are next to each other.

Read more ...


Dynaconf: The Python Config Silver Bullet!

Blog Post Publish Date: 2024/07/21

This blog post gives a short overview of good practices for application configuration, explains the main features of Dynaconf, and walks through a hands-on example that extends it to read parameters from AWS Systems Manager Parameter Store.

Read more ...