Tag Archives: #programming

Concurrency in Python: Threads, Processes, and the Event Loop

Concurrency in Python: Threads, Processes, and the Event Loop

Master Python concurrency: understand when to use threads, processes, or asyncio — and why the event loop became the backbone of modern high-throughput applications.

Continue Reading
Building a Database Layer in Python with SQLAlchemy ORM

Building a Database Layer in Python with SQLAlchemy ORM

Learn how to build a clean, transactional database layer in Python using SQLAlchemy ORM, a DatabaseSessionManager, DAO models, and the DAO vs DTO boundary inside a layered architecture.

Continue Reading
Building a Python CLI with Typer: The Modern Approach to the Command Pattern

Building a Python CLI with Typer: The Modern Approach to the Command Pattern

Typer brings Python type hints to CLI development — no decorators, no boilerplate, just annotated functions. See how it compares to argparse and Click on the same Task Manager CLI.

Continue Reading
Building a Python CLI with Click: A Cleaner Approach to the Command Pattern

Building a Python CLI with Click: A Cleaner Approach to the Command Pattern

Learn how the Click library simplifies Python CLI development — cleaner commands, built-in type validation, and no shared execute() boilerplate.

Continue Reading
How to Create Cron Jobs in Python for Your Applications

How to Create Cron Jobs in Python for Your Applications

Learn how to build a generic, configurable cron job class in Python with APScheduler — run periodic tasks in the background with clean scheduling, logging, and error handling.

Continue Reading
Logging in a Flask Application with Loguru

Logging in a Flask Application with Loguru

Learn how to centralize logging in a Flask application with Loguru, including stdout/file outputs and standard logging interception.

Continue Reading
Managing Application Configuration in Python with Pydantic Settings

Managing Application Configuration in Python with Pydantic Settings

Learn how to manage Python application configuration using pydantic-settings, combining YAML files for non-secret parameters and environment variables for secrets.

Continue Reading