Tech Verse Logo
Enable dark mode
Python
Category

Python

Learn Python fundamentals and advanced concepts with practical guides for web, data, and automation projects.

24 Posts

The Python here is written for developers who build and run services, many of them coming from PHP. FastAPI gets the most attention: dependency injection, JWT middleware, testing with dependency overrides, and the scope leaks that only appear in production. Async Python follows close behind, with event-loop stalls, unclosed sessions and asyncio explained without the hand-waving.

There are also practical guides to the toolchain (uv, lockfiles, workspaces, and how they compare with venv and Poetry), to typing with mypy and Pydantic, to profiling memory with Memray, and to pytest fixtures that stay readable. If you know Laravel, the FastAPI and SQLAlchemy guides map the concepts you already use to their Python equivalents.

AI and LLM work in Python, such as RAG pipelines, embeddings and structured output, is covered here when the focus is the Python code, and in the AI category when it's the model.

FastAPI Dependency Overrides for Integration Testing
Md. Mostafijur RahmanMMd. Mostafijur Rahman
Md. Mostafijur Rahman

FastAPI Dependency Overrides for Integration Testing

Migrating a Legacy Python Codebase to Strict Type Checking
Md. Mostafijur RahmanMMd. Mostafijur Rahman
Md. Mostafijur Rahman

Migrating a Legacy Python Codebase to Strict Type Checking

Profiling and Fixing Python Memory Leaks
Md. Mostafijur RahmanMMd. Mostafijur Rahman
Md. Mostafijur Rahman

Profiling and Fixing Python Memory Leaks

Python Monorepos with uv Workspaces: Layout to Docker
Md. Mostafijur RahmanMMd. Mostafijur Rahman
Md. Mostafijur Rahman

Python Monorepos with uv Workspaces: Layout to Docker

Sanitizing RAG Pipelines Against Prompt Injection
Md. Mostafijur RahmanMMd. Mostafijur Rahman
Md. Mostafijur Rahman

Sanitizing RAG Pipelines Against Prompt Injection

Streaming Structured LLM Output With Pydantic
Md. Mostafijur RahmanMMd. Mostafijur Rahman
Md. Mostafijur Rahman

Streaming Structured LLM Output With Pydantic

FastAPI JWT Middleware: Verify Tokens at the Edge
Md. Mostafijur RahmanMMd. Mostafijur Rahman
Md. Mostafijur Rahman

FastAPI JWT Middleware: Verify Tokens at the Edge

Fixing Python Subprocess Resource Leaks
Md. Mostafijur RahmanMMd. Mostafijur Rahman
Md. Mostafijur Rahman

Fixing Python Subprocess Resource Leaks

Strict Null Safety in Pydantic: Missing, Null and Empty
Md. Mostafijur RahmanMMd. Mostafijur Rahman
Md. Mostafijur Rahman

Strict Null Safety in Pydantic: Missing, Null and Empty

Diagnosing Async Python Event Loop Stalls
Md. Mostafijur RahmanMMd. Mostafijur Rahman
Md. Mostafijur Rahman

Diagnosing Async Python Event Loop Stalls

uv.lock in Production: Locked Installs, CI and Docker
Md. Mostafijur RahmanMMd. Mostafijur Rahman
Md. Mostafijur Rahman

uv.lock in Production: Locked Installs, CI and Docker

Building Reliable LLM Fallback Chains with Python
Md. Mostafijur RahmanMMd. Mostafijur Rahman
Md. Mostafijur Rahman

Building Reliable LLM Fallback Chains with Python

Profiling Python Memory Usage with Memray
Md. Mostafijur RahmanMMd. Mostafijur Rahman
Md. Mostafijur Rahman

Profiling Python Memory Usage with Memray

FastAPI Dependency Injection Scope Leaks in Production
Md. Mostafijur RahmanMMd. Mostafijur Rahman
Md. Mostafijur Rahman

FastAPI Dependency Injection Scope Leaks in Production

Local Embedding Models in Production RAG
Md. Mostafijur RahmanMMd. Mostafijur Rahman
Md. Mostafijur Rahman

Local Embedding Models in Production RAG

Fixing Async Python Memory Leaks from Unclosed Sessions
Md. Mostafijur RahmanMMd. Mostafijur Rahman
Md. Mostafijur Rahman

Fixing Async Python Memory Leaks from Unclosed Sessions