Tagged articles
5000 articles
Page 10 of 50
Python Programming Learning Circle
Python Programming Learning Circle
May 26, 2025 · Fundamentals

Comprehensive Guide to Python Version, Environment, Package Management and Build Tools

This article provides a structured overview of Python version management, virtual environment handling, package management, building, and publishing tools, comparing utilities like pyenv, conda, pipenv, Poetry, pdm, Hatch, and Rye, and includes practical command examples and a feature‑comparison table.

PythonTool comparisondependency-management
0 likes · 23 min read
Comprehensive Guide to Python Version, Environment, Package Management and Build Tools
Code Mala Tang
Code Mala Tang
May 26, 2025 · Fundamentals

10 Common Python Anti‑Patterns and How to Avoid Them

This article examines ten frequent Python anti‑patterns—such as mutable default arguments, catching broad exceptions, overly long functions, reinventing the wheel, misusing list comprehensions, excessive lambdas, hard‑coded values, ignoring virtual environments, overusing inheritance, and neglecting code formatting—explaining why they harm readability, maintainability or performance and offering clear, better‑practice alternatives.

Anti-PatternsPythoncode quality
0 likes · 8 min read
10 Common Python Anti‑Patterns and How to Avoid Them
Test Development Learning Exchange
Test Development Learning Exchange
May 25, 2025 · Fundamentals

Understanding Python's functools.partial: Syntax, Benefits, and Practical Examples

This article explains what Python's functools.partial is, shows its basic syntax, outlines its advantages such as reducing code duplication and improving readability, and provides multiple practical code examples—including simple addition, keyword arguments, complex use cases, comparisons with lambda, and real‑world applications in GUI and multithreading contexts.

Higher-Order FunctionsPythoncode-reuse
0 likes · 7 min read
Understanding Python's functools.partial: Syntax, Benefits, and Practical Examples
Test Development Learning Exchange
Test Development Learning Exchange
May 25, 2025 · Fundamentals

Master Python Functions: Syntax, Parameters, Defaults, and Advanced Tricks

This guide explains how to define Python functions, the role of return statements, differences between positional and keyword arguments, default‑parameter pitfalls, *args/**kwargs usage, argument unpacking, reference passing semantics, positional‑only/keyword‑only parameters, and anonymous lambda functions, all with clear code examples.

LambdaPythonargs-kwargs
0 likes · 6 min read
Master Python Functions: Syntax, Parameters, Defaults, and Advanced Tricks
Fun with Large Models
Fun with Large Models
May 23, 2025 · Backend Development

Rapidly Build a Streamable HTTP MCP Server with the Official MCP SDK – Full End‑to‑End Guide

This article walks through the complete process of creating, testing, and publishing a streamable HTTP MCP server using the official MCP SDK, covering environment setup with Anaconda and uv, project structuring, code implementation, tool integration, Inspector testing, PyPI deployment, and client verification with CherryStudio.

ASGICherryStudioMCP
0 likes · 16 min read
Rapidly Build a Streamable HTTP MCP Server with the Official MCP SDK – Full End‑to‑End Guide
Python Programming Learning Circle
Python Programming Learning Circle
May 23, 2025 · Artificial Intelligence

Useful Python Libraries for Data Science (Beyond pandas and NumPy)

This article introduces a curated list of lesser‑known Python packages for data‑science tasks—including Wget, Pendulum, imbalanced‑learn, FlashText, fuzzywuzzy, PyFlux, Ipyvolume, Dash, and Gym—providing installation commands, brief usage examples, and explanations of when each library is useful.

Pythondata-sciencemachine-learning
0 likes · 10 min read
Useful Python Libraries for Data Science (Beyond pandas and NumPy)
Code Mala Tang
Code Mala Tang
May 22, 2025 · Fundamentals

9 Essential Python Debugging Techniques Every Developer Should Master

This guide presents nine practical Python debugging methods—including try‑except blocks, print statements, the pdb debugger, assertions, stack trace analysis, linting tools, IDE breakpoints, logging, and unit testing—to help developers quickly identify and resolve errors in their code.

Error HandlingPythondebugging
0 likes · 4 min read
9 Essential Python Debugging Techniques Every Developer Should Master
Test Development Learning Exchange
Test Development Learning Exchange
May 22, 2025 · Fundamentals

Understanding Python Iterables: Concepts, Creation, Built‑in Functions, Comprehensions, Advanced Operations, and Generators

This article explains Python iterables, covering their basic concepts, how to create and use them with loops, iter() and next(), built‑in functions that accept iterables, comprehension techniques, advanced operations like zip, enumerate, filter, map, and their relationship with generators for efficient data processing.

ComprehensionsGeneratorsIterable
0 likes · 7 min read
Understanding Python Iterables: Concepts, Creation, Built‑in Functions, Comprehensions, Advanced Operations, and Generators
Test Development Learning Exchange
Test Development Learning Exchange
May 21, 2025 · Operations

Best Practices for Load Testing with Locust: Resource Management, User Simulation, Distributed Testing, and Monitoring

This guide outlines essential Locust load‑testing practices, covering resource and error handling, realistic user behavior simulation, distributed test setup, environment consistency, monitoring and reporting, security considerations, and systematic performance bottleneck identification.

Distributed TestingLocustPerformance Testing
0 likes · 5 min read
Best Practices for Load Testing with Locust: Resource Management, User Simulation, Distributed Testing, and Monitoring
Code Mala Tang
Code Mala Tang
May 21, 2025 · Backend Development

Master FastAPI Responses: JSON, HTML, Files, Streaming & Custom Classes

Learn how FastAPI handles various response types—including default JSON, custom status codes and headers, HTMLResponse, FileResponse, StreamingResponse, and user‑defined response classes—while covering best practices, common pitfalls, and code examples for building robust APIs.

API responsesFastAPIPython
0 likes · 8 min read
Master FastAPI Responses: JSON, HTML, Files, Streaming & Custom Classes
Code Mala Tang
Code Mala Tang
May 20, 2025 · Backend Development

Master FastAPI’s Application Lifecycle: From Startup to Shutdown

This guide explains FastAPI’s full application lifecycle—including startup initialization, middleware handling, request processing steps, background tasks, and graceful shutdown—so developers can design, debug, and deploy robust asynchronous APIs efficiently.

APIApplication LifecycleFastAPI
0 likes · 7 min read
Master FastAPI’s Application Lifecycle: From Startup to Shutdown
Liangxu Linux
Liangxu Linux
May 19, 2025 · Fundamentals

Why PCA Transforms High‑Dimensional Data into Simple Insights (with Python)

This article demystifies Principal Component Analysis by explaining its intuition, the role of variance, step‑by‑step visual analogies, the mathematical foundation, and a complete Python implementation using scikit‑learn, including data generation, scaling, fitting, scree plot visualization, component interpretation, and dimensionality reduction to two principal components.

Data visualizationPCAPython
0 likes · 16 min read
Why PCA Transforms High‑Dimensional Data into Simple Insights (with Python)
Code Mala Tang
Code Mala Tang
May 19, 2025 · Backend Development

How to Implement Server‑Sent Events (SSE) in FastAPI for Real‑Time Apps

Server‑Sent Events (SSE) provide a simple, one‑way server push mechanism over HTTP, ideal for real‑time updates such as dashboards, notifications, and data streams; this guide explains SSE fundamentals, compares alternatives, and walks through integrating SSE into FastAPI using the sse‑starlette library with full code examples.

FastAPIPythonReal-time Updates
0 likes · 9 min read
How to Implement Server‑Sent Events (SSE) in FastAPI for Real‑Time Apps
Fun with Large Models
Fun with Large Models
May 19, 2025 · Backend Development

Build a Streamable HTTP MCP Server from Scratch: Theory, Protocol Deep‑Dive and Full Python Implementation

This article explains the limitations of the original Stdio and HTTP SSE communication modes for MCP, introduces the Streamable HTTP protocol that resolves those issues, and provides a step‑by‑step Python implementation of both a Streamable HTTP MCP server and a matching client, complete with environment setup, FastAPI code, JSON‑RPC handling, and tool‑calling examples.

FastAPIJSON-RPCMCP protocol
0 likes · 28 min read
Build a Streamable HTTP MCP Server from Scratch: Theory, Protocol Deep‑Dive and Full Python Implementation
Code Mala Tang
Code Mala Tang
May 18, 2025 · Fundamentals

5 Must-Have Python CLI Tools to Supercharge Your Terminal

Discover five powerful Python command‑line utilities—httpie, glances, rich‑cli, howdoi, and csvkit—that streamline API interactions, system monitoring, output formatting, quick Stack Overflow answers, complete with installation steps and practical examples to boost your productivity.

CLI toolsPythonautomation
0 likes · 6 min read
5 Must-Have Python CLI Tools to Supercharge Your Terminal
Architect's Guide
Architect's Guide
May 18, 2025 · Backend Development

Integrating DeepSeek AI with a WeChat Public Account: A Step‑by‑Step Backend Tutorial

This tutorial walks beginners through obtaining a DeepSeek API key, setting up an Alibaba Cloud ECS instance, configuring the server and WeChat public platform, installing required Python dependencies, editing configuration files, and finally running the chatbot so the public account can interact with the DeepSeek large‑language model.

APIBackendDeepSeek
0 likes · 12 min read
Integrating DeepSeek AI with a WeChat Public Account: A Step‑by‑Step Backend Tutorial
Test Development Learning Exchange
Test Development Learning Exchange
May 17, 2025 · Fundamentals

Understanding Python Generator Functions: Syntax, Usage, and Practical Examples

Python generator functions, using the yield keyword, enable lazy evaluation and memory-efficient data processing, with examples covering basic syntax, differences from regular functions, Fibonacci sequence generation, large file reading, two-way communication via send(), and control methods like throw() and close(), highlighting their advantages.

Code ExamplesIteratorsLazy Evaluation
0 likes · 4 min read
Understanding Python Generator Functions: Syntax, Usage, and Practical Examples
Code Mala Tang
Code Mala Tang
May 16, 2025 · Backend Development

How to Run Non-Blocking Background Tasks in FastAPI with BackgroundTasks

FastAPI’s BackgroundTasks feature lets you register functions that run after a response is sent, enabling non‑blocking operations such as sending emails, logging, or cleaning resources, with simple code examples, parameter details, and insights into its Starlette‑based implementation and limitations.

AsynchronousBackgroundTasksFastAPI
0 likes · 6 min read
How to Run Non-Blocking Background Tasks in FastAPI with BackgroundTasks
Python Programming Learning Circle
Python Programming Learning Circle
May 16, 2025 · Fundamentals

Using openpyxl to Create, Read, and Manipulate Excel Files in Python

This article provides a step‑by‑step guide on installing the openpyxl library, creating new Excel workbooks, reading existing files, applying common operations such as iterating cells, modifying values, styling, merging, freezing panes, adding formulas, adjusting dimensions, and demonstrates practical scenarios including bulk data writes and pandas integration.

Pythondata-processingopenpyxl
0 likes · 5 min read
Using openpyxl to Create, Read, and Manipulate Excel Files in Python
php Courses
php Courses
May 16, 2025 · Operations

Using Python for Automation in Operations (DevOps)

This article explains why Python is a leading language for DevOps automation, detailing its core advantages, typical use cases such as bulk server management, configuration management, log analysis, and scheduled tasks, and introduces common Python libraries and learning pathways for building robust operational workflows.

Configuration ManagementDevOpsOperations
0 likes · 6 min read
Using Python for Automation in Operations (DevOps)
php Courses
php Courses
May 15, 2025 · Artificial Intelligence

Why Python Dominates Data Analysis and Machine Learning: Core Tools, Full‑Stack Solutions, and Learning Path

This article explains why Python has become the leading language for data analysis and machine learning, outlines the essential libraries and frameworks, provides practical code examples, describes typical application scenarios, suggests a staged learning roadmap, and forecasts future trends such as AutoML and federated learning.

AutoMLPyTorchPython
0 likes · 6 min read
Why Python Dominates Data Analysis and Machine Learning: Core Tools, Full‑Stack Solutions, and Learning Path
php Courses
php Courses
May 14, 2025 · Backend Development

Python Advantages for Web Scraping and Core Library Guide

This article outlines Python's advantages for web crawling, introduces core libraries such as Requests, BeautifulSoup, and Scrapy, details a step-by-step development workflow, provides practical code examples for extracting news titles, and highlights important considerations and advanced techniques for robust scraper implementation.

Data ExtractionPythonScrapy
0 likes · 5 min read
Python Advantages for Web Scraping and Core Library Guide
Network Intelligence Research Center (NIRC)
Network Intelligence Research Center (NIRC)
May 14, 2025 · Artificial Intelligence

Hands‑On CLIP: Implementing Multimodal Vision‑Language Understanding

This article introduces OpenAI’s CLIP multimodal model, explains its architecture and contrastive training, details hardware and installation steps, and demonstrates a hands‑on zero‑shot image classification workflow that achieves 97% confidence on a cat image without any task‑specific fine‑tuning.

CLIPMultimodalPython
0 likes · 6 min read
Hands‑On CLIP: Implementing Multimodal Vision‑Language Understanding
Tencent Cloud Developer
Tencent Cloud Developer
May 13, 2025 · Artificial Intelligence

Function Calling and Model Context Protocol (MCP): Bridging Large Language Models with Real‑World Systems

The article reviews the shortcomings of traditional large language models, explains how function calling extends LLMs beyond pure text, introduces the Model Context Protocol (MCP) as a standardized USB‑C‑like interface for AI tools, and demonstrates a Python MCP example that integrates LLMs with Tencent Advertising APIs.

AI integrationAPIFunction Calling
0 likes · 16 min read
Function Calling and Model Context Protocol (MCP): Bridging Large Language Models with Real‑World Systems
Code Mala Tang
Code Mala Tang
May 12, 2025 · Backend Development

How to Build a FastAPI Service with RabbitMQ Consumer & Publisher

This guide walks through creating a FastAPI application that both publishes and consumes messages via RabbitMQ, detailing the setup of a Pika client, asynchronous consumer, message handling, API routes, and deployment with uvicorn, complete with code snippets and testing instructions.

AsyncFastAPIPika
0 likes · 7 min read
How to Build a FastAPI Service with RabbitMQ Consumer & Publisher
Python Programming Learning Circle
Python Programming Learning Circle
May 12, 2025 · Fundamentals

Basic Python Web Scraping Techniques and Tips

This article introduces beginner-friendly Python web‑scraping methods, covering the simplest urllib/requests approach, adding request headers, inspecting network traffic for hidden data, handling dynamically loaded content with Selenium, and provides links to deeper tutorials for each technique.

Network InspectionPythonSelenium
0 likes · 4 min read
Basic Python Web Scraping Techniques and Tips
Youzan Coder
Youzan Coder
May 12, 2025 · Artificial Intelligence

How Large Language Models Empower Business Development Engineers: Data Analysis, Model Training, and Rapid Prototyping

This article demonstrates how large language models can augment business development engineers by providing data insight, automating algorithm training, and enabling low‑cost rapid product prototyping, thereby transforming traditional backend‑focused roles into full‑stack, AI‑enhanced innovators.

AIPythonRapid Prototyping
0 likes · 10 min read
How Large Language Models Empower Business Development Engineers: Data Analysis, Model Training, and Rapid Prototyping
Data STUDIO
Data STUDIO
May 12, 2025 · Fundamentals

Why Pydantic Is a Must‑Know Python Library for Data Validation

This article introduces Pydantic (v2), explains its core validation, parsing, and serialization features, compares it with plain dataclasses, demonstrates basic to advanced usage—including optional fields, default factories, nested models, custom validators, and alias handling—while warning about version differences and AI‑generated code pitfalls.

AliasCustom ValidationFastAPI
0 likes · 16 min read
Why Pydantic Is a Must‑Know Python Library for Data Validation
Code Mala Tang
Code Mala Tang
May 10, 2025 · Backend Development

Master FastAPI Request Body Validation with Pydantic Models

This guide explains how FastAPI uses Pydantic models to define, validate, and parse JSON and form request bodies, set default values and custom rules, handle nested structures, and return response models, providing a type‑safe, efficient way to build backend APIs.

FastAPIPydanticPython
0 likes · 8 min read
Master FastAPI Request Body Validation with Pydantic Models
Test Development Learning Exchange
Test Development Learning Exchange
May 10, 2025 · Fundamentals

Using Python's json Module: Serialization, Deserialization, and Common Operations

This article introduces Python's built‑in json module, explaining how to serialize Python objects to JSON strings and files, deserialize JSON back to Python, and demonstrates common tasks such as pretty‑printing, handling Unicode, working with lists and nested structures, custom encoders, and network responses.

DeserializationJSONPython
0 likes · 8 min read
Using Python's json Module: Serialization, Deserialization, and Common Operations
Code Mala Tang
Code Mala Tang
May 9, 2025 · Backend Development

How to Render HTML with FastAPI and Jinja2: A Step‑by‑Step Guide

This tutorial walks you through installing FastAPI, setting up a project structure, creating routes that serve Jinja2‑rendered HTML pages, adding static files, building forms, and mastering essential Jinja2 syntax such as variables, conditionals, loops, template inheritance, filters, macros, and security considerations.

FastAPIHTML renderingJinja2
0 likes · 7 min read
How to Render HTML with FastAPI and Jinja2: A Step‑by‑Step Guide
Alibaba Cloud Native
Alibaba Cloud Native
May 9, 2025 · Artificial Intelligence

Build a Retrieval‑Augmented Generation (RAG) App with LangChain, Higress, and Elasticsearch

This tutorial walks through building a Retrieval‑Augmented Generation (RAG) system by combining LangChain for document processing, Elasticsearch’s vector store with the ELSER v2 model for semantic search, and Higress as a cloud‑native AI gateway, complete with deployment scripts, code examples, and query testing.

AIHigressLangChain
0 likes · 15 min read
Build a Retrieval‑Augmented Generation (RAG) App with LangChain, Higress, and Elasticsearch
G7 EasyFlow Tech Circle
G7 EasyFlow Tech Circle
May 9, 2025 · Artificial Intelligence

How LLMs + Python Are Redefining Data Analysis: A Practical Guide

This article explains how large language models combined with Python's data‑science ecosystem can automate metadata extraction, data cleaning, and analysis tasks—illustrated with a step‑by‑step Titanic passenger dataset case study, complete prompts, code snippets, and best‑practice recommendations.

LLMPrompt EngineeringPython
0 likes · 18 min read
How LLMs + Python Are Redefining Data Analysis: A Practical Guide
Code Mala Tang
Code Mala Tang
May 8, 2025 · Backend Development

Mastering Exception Handling in FastAPI: Strategies, Patterns, and Code

Learn how to design robust exception handling for FastAPI applications by combining Look‑Before‑You‑Leap and EAFP strategies, creating custom exception classes, organizing handlers, and integrating them into your API to improve maintainability, clarity, and error response consistency.

Custom ExceptionsException HandlingFastAPI
0 likes · 19 min read
Mastering Exception Handling in FastAPI: Strategies, Patterns, and Code
21CTO
21CTO
May 8, 2025 · Artificial Intelligence

Build a Simple ChatGPT Bot with Python and OpenAI API in Minutes

This tutorial walks you through registering on OpenAI, installing required Python packages, setting up API keys, and writing a Jupyter Notebook that defines a chat function and an interactive loop to create a functional GPT‑3.5 chatbot.

ChatGPTChatbotGPT-3.5
0 likes · 7 min read
Build a Simple ChatGPT Bot with Python and OpenAI API in Minutes
php Courses
php Courses
May 8, 2025 · Fundamentals

Data Visualization with Matplotlib and Seaborn in Python

This article introduces Python's Matplotlib and Seaborn libraries for data visualization, covering basic and advanced statistical charts, common plot types, customization techniques, and multi‑plot layouts with clear code examples and a comparative summary of each library's strengths.

Data visualizationMatplotlibPython
0 likes · 5 min read
Data Visualization with Matplotlib and Seaborn in Python
Test Development Learning Exchange
Test Development Learning Exchange
May 6, 2025 · Fundamentals

Python Date and Time Manipulation Examples

This article provides a comprehensive collection of Python code snippets demonstrating how to obtain, format, convert, calculate differences, and perform various operations with dates and times, including timers, scheduling, and weekday handling.

PythonTime ManipulationTutorial
0 likes · 7 min read
Python Date and Time Manipulation Examples
AI Large Model Application Practice
AI Large Model Application Practice
May 6, 2025 · Artificial Intelligence

How to Build an Agentic RAG System from Scratch Using MCP Architecture

This article walks through the design and full implementation of an Agentic Retrieval‑Augmented Generation (RAG) system built on the MCP standard, covering the conceptual fusion of MCP and RAG, server‑side tool creation with LlamaIndex, client‑side agent construction with LangGraph, configuration files, caching strategies, code examples, and an end‑to‑end demonstration.

Agentic RAGLLMLangGraph
0 likes · 15 min read
How to Build an Agentic RAG System from Scratch Using MCP Architecture
DevOps Engineer
DevOps Engineer
May 6, 2025 · Backend Development

Getting Started with uv: Fast Python Package Management and Project Initialization

This article introduces uv, a Rust‑based Python package manager, and demonstrates how to initialize a project with uv init, add dependencies with uv add, manage virtual environments via uv venv, and run tools with uvx, offering a faster, more automated alternative to pip and requirements files.

Pythondependency resolutionpackage management
0 likes · 6 min read
Getting Started with uv: Fast Python Package Management and Project Initialization
Test Development Learning Exchange
Test Development Learning Exchange
May 5, 2025 · Backend Development

Comprehensive Collection of Python Decorators for Logging, Timing, Error Handling, Caching, and More

This article presents a thorough set of Python decorator implementations covering logging, performance timing, exception handling, caching, retry mechanisms, authentication, parameter validation, decorator chaining, JSON response formatting, rate limiting, environment variable injection, response monitoring, custom headers, data transformation, concurrency control, distributed locking, API version control, security auditing, input validation, and output filtering, each with usage examples and sample output.

APIPythondecorators
0 likes · 21 min read
Comprehensive Collection of Python Decorators for Logging, Timing, Error Handling, Caching, and More
Code Mala Tang
Code Mala Tang
May 5, 2025 · Information Security

6 Essential Python Security Practices Every Developer Should Follow

Learn how to safeguard your Python applications by avoiding hard‑coded secrets, using .env files, employing virtual environments, validating and sanitizing inputs, handling files securely, encrypting sensitive data, and implementing proper exception handling—all essential steps for robust information security.

Environment VariablesException HandlingPython
0 likes · 5 min read
6 Essential Python Security Practices Every Developer Should Follow
Code Mala Tang
Code Mala Tang
May 4, 2025 · Backend Development

Mastering API Calls in Python: SOAP, REST, and GraphQL Explained

Learn how Python can interact with the three major API types—SOAP, REST, and GraphQL—by understanding their core concepts, differences, and practical code examples using libraries like zeep and requests, empowering you to build robust integrations across diverse services.

APIGraphQLPython
0 likes · 9 min read
Mastering API Calls in Python: SOAP, REST, and GraphQL Explained
dbaplus Community
dbaplus Community
May 3, 2025 · Backend Development

Boost Elasticsearch with Vector Embeddings: Python & Logstash Step‑by‑Step Guide

This article explains how vector embeddings enhance Elasticsearch for semantic search and recommendation, walks through the complete workflow of generating, storing, and querying embeddings, and provides detailed Python and Logstash implementations with code samples, pros and cons, and guidance on choosing the right approach.

ElasticsearchLogstashPython
0 likes · 11 min read
Boost Elasticsearch with Vector Embeddings: Python & Logstash Step‑by‑Step Guide
php Courses
php Courses
Apr 30, 2025 · Fundamentals

Comprehensive Introduction to NumPy: ndarray, Creation, Indexing, Operations, Linear Algebra, I/O, and Real‑World Data Analysis

This article provides a thorough overview of NumPy, covering its core ndarray structure, various array creation methods, indexing and slicing techniques, vectorized operations with broadcasting, statistical and linear‑algebra functions, file input/output, and a practical data‑analysis example, all illustrated with executable Python code.

Array OperationsNumPyPython
0 likes · 10 min read
Comprehensive Introduction to NumPy: ndarray, Creation, Indexing, Operations, Linear Algebra, I/O, and Real‑World Data Analysis
Python Crawling & Data Mining
Python Crawling & Data Mining
Apr 30, 2025 · Fundamentals

How to Plot Multiple Gamma Distributions in Python with Matplotlib – A Step‑by‑Step Guide

This article walks through a common Python matplotlib visualization issue, showing how to read parameter data, generate multiple gamma distribution curves, add labels and legends, and produce polished plots, with complete code examples and explanations to help readers replicate the solution.

Data visualizationGamma DistributionMatplotlib
0 likes · 5 min read
How to Plot Multiple Gamma Distributions in Python with Matplotlib – A Step‑by‑Step Guide
DevOps
DevOps
Apr 29, 2025 · Artificial Intelligence

Model Context Protocol (MCP): End‑to‑End Tutorial with a Hands‑On News Retrieval Project

This tutorial explains the Model Context Protocol (MCP) for integrating large language models with external data sources, details its architecture, connection lifecycle, and core JSON‑RPC features, and provides a step‑by‑step Python implementation that fetches real‑time tech news and integrates with Claude Desktop.

AI integrationJSON-RPCMCP
0 likes · 9 min read
Model Context Protocol (MCP): End‑to‑End Tutorial with a Hands‑On News Retrieval Project
Code Mala Tang
Code Mala Tang
Apr 29, 2025 · Fundamentals

Unlock Python’s Hidden Power: Mastering the __dict__ Attribute

Explore how Python’s built-in __dict__ attribute stores object attributes, enabling introspection, dynamic attribute manipulation, memoization, JSON serialization, custom descriptors, and debugging, while also learning its limitations with slots and built-in types for performance.

AttributesIntrospectionPython
0 likes · 8 min read
Unlock Python’s Hidden Power: Mastering the __dict__ Attribute
Python Programming Learning Circle
Python Programming Learning Circle
Apr 28, 2025 · Fundamentals

Top 11 GitHub Repositories for Learning Python

This article presents a curated list of eleven high‑quality GitHub repositories, ranging from algorithm collections and comprehensive Python libraries to project‑based learning resources, each described with its purpose, popularity metrics, and direct links, to help programmers at any skill level advance their Python expertise.

Pythondata-sciencelearning-resources
0 likes · 10 min read
Top 11 GitHub Repositories for Learning Python
Data Thinking Notes
Data Thinking Notes
Apr 27, 2025 · Artificial Intelligence

Step‑by‑Step MCP Demo: Build Server and Claude/DeepSeek Clients

This guide walks developers through creating a complete MCP application, covering the workflow, server setup with Python, debugging tools, and client implementation using both Claude and DeepSeek models, complete with code snippets, environment configuration, and testing procedures to demonstrate end‑to‑end LLM tool integration.

ClaudeDeepSeekLLM
0 likes · 10 min read
Step‑by‑Step MCP Demo: Build Server and Claude/DeepSeek Clients
AI Algorithm Path
AI Algorithm Path
Apr 27, 2025 · Artificial Intelligence

Six AI Frameworks Supporting Model Context Protocol (MCP)

This guide explains the Model Context Protocol (MCP), compares six Python and TypeScript AI frameworks that implement MCP, demonstrates their architectures, registries, and code integrations—including OpenAI Agents SDK, Praison AI, LangChain, Chainlit, Agno, and Upsonic—while also discussing the benefits, challenges, and future standardization of MCP in AI agent development.

AI agentsLangChainMCP
0 likes · 25 min read
Six AI Frameworks Supporting Model Context Protocol (MCP)
Code Mala Tang
Code Mala Tang
Apr 27, 2025 · Fundamentals

10 Common Python Anti‑Patterns and How to Replace Them

Discover the most subtle Python anti‑patterns—from using is for value comparison to overusing map and filter—explaining why they harm readability, performance, or correctness, and learn clear, idiomatic alternatives that make your code cleaner, faster, and more maintainable.

Anti-PatternsPythoncode readability
0 likes · 10 min read
10 Common Python Anti‑Patterns and How to Replace Them
Code Mala Tang
Code Mala Tang
Apr 27, 2025 · Fundamentals

Master Python’s Stable Sorting: Using sorted() with key and reverse

Python’s sorted() function offers stable sorting, allowing multi‑criteria ordering through successive sorts, while its flexible key parameter lets you customize sorting logic—such as sorting by length then alphabetically—and the reverse flag enables effortless descending order, making complex sorting tasks straightforward.

PythonSortingkey function
0 likes · 4 min read
Master Python’s Stable Sorting: Using sorted() with key and reverse
AI Algorithm Path
AI Algorithm Path
Apr 26, 2025 · Artificial Intelligence

Exploring Different AI Agent Architectures: From Reactive to Cognitive

This tutorial explains AI agent architectures, compares reactive, deliberative, hybrid, neural‑symbolic and cognitive designs, shows their trade‑offs, provides Python code examples for each, and links these patterns to LangGraph design templates for building scalable intelligent systems.

AI agentsAgent ArchitectureLangGraph
0 likes · 17 min read
Exploring Different AI Agent Architectures: From Reactive to Cognitive
Python Programming Learning Circle
Python Programming Learning Circle
Apr 26, 2025 · Operations

Handling Non‑Select Dropdowns, Dynamic IDs, and File Uploads with Selenium Python

This article demonstrates how to automate non‑select dropdowns that allow or disallow text input, locate elements with dynamic IDs or without unique attributes using XPath, overcome click‑obstruction with JavaScript, and upload files via pywinauto when standard input elements are unavailable, all with Python Selenium code examples.

PythonSeleniumWebDriver
0 likes · 7 min read
Handling Non‑Select Dropdowns, Dynamic IDs, and File Uploads with Selenium Python
Java Tech Enthusiast
Java Tech Enthusiast
Apr 26, 2025 · Fundamentals

Valid Parentheses Problem – Solution, Explanation, and Mid‑Career Insights

The article reflects on why mid‑career engineers are often relegated to legacy‑maintenance work, argues that such roles can be leveraged for growth by modernizing systems and adopting AI, and then presents the classic Valid Parentheses coding challenge, explaining a stack‑based solution with implementations, complexity analysis, and common pitfalls.

PythonStackalgorithm
0 likes · 14 min read
Valid Parentheses Problem – Solution, Explanation, and Mid‑Career Insights
Python Crawling & Data Mining
Python Crawling & Data Mining
Apr 26, 2025 · Information Security

Master Frida: Step-by-Step Guide to Hook Android Apps with Python

This tutorial walks you through setting up a Python virtual environment, installing Frida and frida‑server on a rooted Android device, configuring the server, verifying the connection, and writing JavaScript hooks to intercept login functions, complete with code snippets, command examples, and troubleshooting tips.

AndroidFridaHooking
0 likes · 11 min read
Master Frida: Step-by-Step Guide to Hook Android Apps with Python
Raymond Ops
Raymond Ops
Apr 25, 2025 · Fundamentals

Understanding Python’s `is` Operator, re.sub quirks, and list pitfalls

This article explains why Python’s `is` operator yields True or False for integers, how integer caching and code‑block scope affect object identity, uncovers a subtle misuse of re.sub’s count parameter, clarifies lstrip’s character‑wise stripping, and demonstrates the pitfalls of creating nested lists with the `[*] * n` syntax.

PythonString Manipulationlist-issues
0 likes · 7 min read
Understanding Python’s `is` Operator, re.sub quirks, and list pitfalls
Python Programming Learning Circle
Python Programming Learning Circle
Apr 25, 2025 · Fundamentals

Using Python argparse for Command‑Line Argument Parsing

This article introduces Python's built‑in argparse module, explains its core features such as defining positional and optional arguments, type constraints, mutually exclusive groups, sub‑parsers, and best‑practice tips, and provides a complete runnable example for building robust CLI tools.

Pythonargparsecommand-line
0 likes · 5 min read
Using Python argparse for Command‑Line Argument Parsing
php Courses
php Courses
Apr 25, 2025 · Backend Development

Understanding HTTP Protocol and Using Python requests Library

This article introduces the fundamentals of the HTTP protocol, explains its request and response structures, and provides a comprehensive guide to using Python's requests library for sending GET, POST, PUT, DELETE requests, handling headers, parameters, JSON responses, timeouts, and exceptions.

HTTPNetwork programmingPython
0 likes · 9 min read
Understanding HTTP Protocol and Using Python requests Library
Code Mala Tang
Code Mala Tang
Apr 24, 2025 · Backend Development

Mastering Dependency Injection in FastAPI: From Basics to Advanced Use

This article explains how FastAPI leverages Dependency Injection to improve code reusability, modularity, and testability, covering basic examples, sub‑dependency handling, database session management with SQLAlchemy, and building a full‑featured user management API with authentication.

FastAPIPythonWeb API
0 likes · 9 min read
Mastering Dependency Injection in FastAPI: From Basics to Advanced Use
Raymond Ops
Raymond Ops
Apr 24, 2025 · Fundamentals

Master Recursion: Classic Python Examples and Core Concepts

This article introduces recursion, explains its definition and key characteristics, and demonstrates classic Python examples such as factorial calculation, Fibonacci sequence generation, and binary search, helping readers grasp how recursion simplifies complex problems compared to iterative loops.

Binary SearchFibonacciPython
0 likes · 8 min read
Master Recursion: Classic Python Examples and Core Concepts
php Courses
php Courses
Apr 24, 2025 · Backend Development

Introduction to Socket Programming in Python: TCP and UDP Examples

This article explains the fundamentals of socket programming in Python, covering basic concepts such as IP addresses, ports, and protocols, and provides complete TCP and UDP server/client code examples along with common troubleshooting tips and advanced modules for building robust network applications.

PythonTCPUDP
0 likes · 7 min read
Introduction to Socket Programming in Python: TCP and UDP Examples
Code Mala Tang
Code Mala Tang
Apr 23, 2025 · Fundamentals

Why Everything Is an Object in Python: Understanding Mutable vs Immutable

This article explains Python’s core principle that every value is an object, detailing how identity, type, and value define objects, and contrasts mutable and immutable types through practical code examples, illustrating their impact on memory management, variable assignment, function arguments, and common pitfalls.

Function ArgumentsMemory ManagementObjects
0 likes · 11 min read
Why Everything Is an Object in Python: Understanding Mutable vs Immutable