Skip to the content.

Articles

Configuration Files as Python Objects

In this article, we will build an object-oriented approach to configuration management that reads a traditional config.ini file and exposes its configuration values through Python objects and attributes. This creates a clean and intuitive interface for working with configuration data while keeping it separate from the application logic.

August 01, 2026

Read article →

JSON Data as Python Objects

In this article, we will build an object-oriented approach to working with JSON data, transforming JSON structures into Python objects that can be accessed through familiar attributes. This provides a cleaner and more intuitive way to work with nested data without repeatedly navigating through dictionaries and keys.

August 04, 2026

Read article →

Declarative JSON-to-Object Mapping, Python Metaprogramming

This article explores Python metaprogramming through a practical JSON-to-object mapping problem. The solution uses metaprogramming techniques to dynamically interpret class definitions and JSON fields and construct nested Python objects.

August 10, 2026

Read article →

Building a Flexible Logging Abstraction

In this article, we will build a flexible logging abstraction that encapsulates Python's built-in logging framework behind a clean and reusable interface. The abstraction will provide configurable log levels, handlers, and consistent message formatting while keeping the application code independent of the underlying logging configuration.

August 26, 2026

Read article →

Time Profiling in Python

In this article, we will explore time profiling in Python by measuring both wall-clock time and CPU time. We will use Python's profiling tools to examine where execution time is being spent and differentiate time spent waiting from time spent actively using the processor.

September 17, 2026

Read article →

Memory Profiling in Python

In this article, we will explore memory profiling in Python using the built-in tracemalloc module. We will represent the same large dataset using different Python data structures and measure their memory footprints to understand the trade-offs between different data representations.

September 28, 2026

Read article →

Building a System Information CLI with Python and psutil

Explore Python's psutil library to retrieve system, CPU, memory, disk, process, and network information, and build a practical CLI application to present this information through a structured command-line interface.

September 28, 2026

Read article →