MirahLabs Engineering Blog

Technical insights, tutorials, and architectures written by our design and backend engineers.

Active Filters: Category: python Clear All
Python April 16, 2026

Building High-Performance CLI Tools with Python Click and Rich

Convert Python scripts into professional command-line interfaces. Build option parsers with Click and render styled logs, progress bars, and tables using Rich.

⏱️ 20 min read Read Article
Python March 31, 2026

FastAPI Dependency Injection: Design Patterns for Clean Architecture

Dependency Injection in FastAPI is a core feature. Learn how to manage database sessions, security credentials, and mock external service classes in tests.

⏱️ 20 min read Read Article
Python March 29, 2026

Unit Testing Python Code with Pytest: Fixtures, Mocking, and Parametrization

Upgrade your testing workflows. Explore how Pytest's advanced features—fixtures, parameter matrix testing, and mock objects—speed up test execution.

⏱️ 20 min read Read Article
Python March 23, 2026

Writing C Extensions in Python: Cython, Pybind11, and Ctypes

When Python is too slow, compile key functions to C. Compare Cython, Pybind11, and ctypes for raw performance speedups in numeric and CPU-bound algorithms.

⏱️ 21 min read Read Article
Python March 20, 2026

Metaprogramming in Python: Metaclasses, Class Decorators, and Code Generation

Write code that writes code. Learn how to use class decorators, __new__ and __init__ overrides, and custom metaclasses to customize class creation dynamically.

⏱️ 21 min read Read Article
Python March 18, 2026

Advanced Python Generators: Coroutines, Subgenerators, and yield from

Generators are more than lazy lists. Master coroutine communication, two-way data streaming, and delegation using the `yield from` expression.

⏱️ 21 min read Read Article