Tagged articles
5000 articles
Page 11 of 50
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 AgentsLangChainModel Context Protocol
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.

C++PythonStack
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.

HTTPPythonnetwork programming
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.

Backend DevelopmentFastAPIPython
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 ArgumentsObjectsPython
0 likes · 11 min read
Why Everything Is an Object in Python: Understanding Mutable vs Immutable
dbaplus Community
dbaplus Community
Apr 23, 2025 · Databases

Why Redis Used Memory Jumped to 78 GB and How to Diagnose It

A Redis instance suddenly reported 78.9 GB of used_memory against a 16 GB maxmemory limit, triggering massive key eviction; this article explains how INFO reports used_memory, what the metric actually measures, how Redis 7 changes memory accounting, the exact eviction conditions, and provides a Python script to pinpoint the memory‑hogs.

PythonRediseviction
0 likes · 17 min read
Why Redis Used Memory Jumped to 78 GB and How to Diagnose It
php Courses
php Courses
Apr 23, 2025 · Backend Development

Understanding Python Coroutines and Asyncio: Concepts, Framework, and Best Practices

This article explains the fundamentals of Python coroutines and the asyncio library, covering basic concepts, key components, practical examples, advanced techniques such as mixing with threads, cancellation handling, performance optimizations, and common troubleshooting tips for asynchronous programming.

Pythonasynchronous programmingasyncio
0 likes · 9 min read
Understanding Python Coroutines and Asyncio: Concepts, Framework, and Best Practices
Volcano Engine Developer Services
Volcano Engine Developer Services
Apr 22, 2025 · Artificial Intelligence

What Is Model Context Protocol (MCP) and How It Transforms LLM Applications

Model Context Protocol (MCP) is an open standard that standardizes how large language models interact with external tools and data, enabling seamless function calls, simplifying prompt engineering, and allowing developers to build modular AI applications without handling low‑level integration details.

AI IntegrationLLMModel Context Protocol
0 likes · 16 min read
What Is Model Context Protocol (MCP) and How It Transforms LLM Applications
Big Data Technology & Architecture
Big Data Technology & Architecture
Apr 22, 2025 · Artificial Intelligence

Introduction to Retrieval‑Augmented Generation (RAG) and Vector Indexing with StarRocks and DeepSeek

This article explains the fundamentals of Retrieval‑Augmented Generation, demonstrates how to create and query vector indexes using StarRocks, shows how DeepSeek provides embeddings and answer generation, and walks through a complete end‑to‑end RAG pipeline with code examples and a web UI.

AIDeepSeekEmbedding
0 likes · 20 min read
Introduction to Retrieval‑Augmented Generation (RAG) and Vector Indexing with StarRocks and DeepSeek
Code Mala Tang
Code Mala Tang
Apr 21, 2025 · Fundamentals

Unlock Python’s Secrets: Master Namespaces and Scope Explained

This article demystifies Python namespaces, explaining how names map to objects, distinguishing them from scope, detailing the LEGB rule, illustrating built‑in, global, local, and nested namespaces, their lifecycles, and showing practical debugging techniques with locals() and globals().

NamespacesPythonscope
0 likes · 9 min read
Unlock Python’s Secrets: Master Namespaces and Scope Explained
Alibaba Cloud Developer
Alibaba Cloud Developer
Apr 21, 2025 · Artificial Intelligence

Building a Private Knowledge‑Base Q&A Agent with MCP: A Hands‑On Guide

This article explores the rapid rise of AI agents, explains the Model Context Protocol (MCP) standard, and provides a step‑by‑step implementation of a private knowledge‑base Q&A system using Python and Java, covering knowledge construction, retrieval, architecture, and deployment details.

AI AgentKnowledge BasePrompt Engineering
0 likes · 9 min read
Building a Private Knowledge‑Base Q&A Agent with MCP: A Hands‑On Guide
Code Mala Tang
Code Mala Tang
Apr 20, 2025 · Backend Development

Poetry vs requirements.txt: Which Python Dependency Tool Wins?

Poetry is a modern Python dependency and packaging tool that consolidates environment management, dependency resolution, and publishing, offering deterministic builds and integrated workflows, while requirements.txt provides a simple, widely compatible list of packages; the article compares their features, advantages, limitations, and demonstrates usage, including Docker integration.

DockerPoetryPython
0 likes · 14 min read
Poetry vs requirements.txt: Which Python Dependency Tool Wins?
Code Mala Tang
Code Mala Tang
Apr 19, 2025 · Fundamentals

Master HTML Parsing in Python: BeautifulSoup, lxml, and html.parser Compared

Learn why HTML parsing is essential for web scraping, explore three popular Python libraries—BeautifulSoup, lxml, and the built‑in html.parser—covering installation, core usage, advanced techniques, and a comparative analysis to help you choose the right tool for your project.

Pythonbeautifulsouphtml-parsing
0 likes · 11 min read
Master HTML Parsing in Python: BeautifulSoup, lxml, and html.parser Compared
IT Services Circle
IT Services Circle
Apr 19, 2025 · Fundamentals

7 Common Pitfalls in Python Function Writing and How to Avoid Them

This article explains the most frequent mistakes developers make when defining Python functions—such as mutable default arguments, inconsistent return types, overly large functions, outdated string formatting, missing type hints, manual index tracking, and misuse of try‑except for flow control—and provides clear, best‑practice solutions with code examples to write cleaner, more maintainable, and efficient Python code.

Error HandlingFunctionsPython
0 likes · 8 min read
7 Common Pitfalls in Python Function Writing and How to Avoid Them
php Courses
php Courses
Apr 18, 2025 · Fundamentals

Understanding Multithreading in Python with the threading Module

This article explains Python's multithreading concepts, covering thread creation via subclassing Thread or using target functions, synchronization mechanisms like Lock, RLock, and Condition, and discusses the impact of the Global Interpreter Lock, helping readers apply threading effectively for I/O‑bound tasks.

GILPythonSynchronization
0 likes · 9 min read
Understanding Multithreading in Python with the threading Module
Test Development Learning Exchange
Test Development Learning Exchange
Apr 18, 2025 · Fundamentals

Essential Python Standard Library Modules for System and File Operations

This article introduces several essential Python standard‑library modules—including os, shutil, subprocess, signal, sys, platform, logging, getpass, pwd, and grp—explaining their primary functions for file and process management, system information, logging, and user/group queries, and provides concise example code for each.

File ManagementOS modulePython
0 likes · 4 min read
Essential Python Standard Library Modules for System and File Operations
Java Captain
Java Captain
Apr 17, 2025 · Artificial Intelligence

Demonstrating the Full Lifecycle of Model Context Protocol (MCP) with Tool Calls

This article explains how the Model Context Protocol (MCP) enables large language models to retrieve up‑to‑date external information through standardized tool calls, illustrating the complete end‑to‑end workflow with Python code for the MCP server, client, and host, and discussing its advantages for building AI agents.

AI AgentLLMPython
0 likes · 21 min read
Demonstrating the Full Lifecycle of Model Context Protocol (MCP) with Tool Calls
Nightwalker Tech
Nightwalker Tech
Apr 17, 2025 · Artificial Intelligence

LangGraph Explained: Advanced AI Workflow Framework and Hands‑On Guide

This article introduces LangGraph, the next‑generation framework built on LangChain for constructing complex, stateful AI applications, compares it with LangChain, showcases real‑world deployments, and provides a step‑by‑step Python tutorial for building a smart customer‑service chatbot with looped reasoning, tool integration, and human‑in‑the‑loop support.

AI workflowChatbotLangChain
0 likes · 20 min read
LangGraph Explained: Advanced AI Workflow Framework and Hands‑On Guide
Sohu Tech Products
Sohu Tech Products
Apr 16, 2025 · Artificial Intelligence

Comprehensive Guide to Building AI Datasets: From Source Collection to Data Augmentation and Validation

This guide walks readers through every stage of building high‑quality AI training datasets—from locating open‑source data and defining goals, through collection, annotation, cleaning, large‑scale processing, optional augmentation, and splitting, to validation—using a medical QA example for fine‑tuning DeepSeek‑R1.

AI fine-tuningData cleaningDataset Construction
0 likes · 18 min read
Comprehensive Guide to Building AI Datasets: From Source Collection to Data Augmentation and Validation
Code Mala Tang
Code Mala Tang
Apr 15, 2025 · Fundamentals

What Really Happens Inside a Python for-loop? Uncover the Magic of Iterators

This article demystifies Python’s for-loop by explaining how iterable objects and iterators work under the hood, illustrating the iterator protocol with code examples, and providing practical custom iterator implementations, common pitfalls, and tips for efficient data processing.

Data ProcessingIterablePython
0 likes · 9 min read
What Really Happens Inside a Python for-loop? Uncover the Magic of Iterators
Baobao Algorithm Notes
Baobao Algorithm Notes
Apr 15, 2025 · Industry Insights

Why GLM‑Z1‑AirX Hits 150‑200 TPS: A Deep Dive into LLM Speed Benchmarking

The article examines the slowdown caused by long‑chain‑of‑thought LLMs, presents a Python benchmarking script, compares token‑per‑second performance of several models—including the ultra‑fast GLM‑Z1‑AirX—and demonstrates a real‑time anti‑fraud use case that benefits from sub‑second response times.

BenchmarkGLM-Z1-AirXLLM
0 likes · 13 min read
Why GLM‑Z1‑AirX Hits 150‑200 TPS: A Deep Dive into LLM Speed Benchmarking
php Courses
php Courses
Apr 15, 2025 · Fundamentals

Top 20 Most Common Python Standard Library Modules

This article introduces the twenty most frequently used Python standard library modules, such as os, sys, math, random, datetime, json, re, collections, itertools, argparse, and others, explaining their core functionalities and providing concise code examples to help developers efficiently manage files, data, networking, and more.

PythonStandard Libraryfundamentals
0 likes · 8 min read
Top 20 Most Common Python Standard Library Modules
Alibaba Cloud Developer
Alibaba Cloud Developer
Apr 15, 2025 · Artificial Intelligence

Unlock AI Agents with Model Context Protocol (MCP): Deep Dive & Code

This article explains the Model Context Protocol (MCP) introduced by Anthropic, detailing its client‑server architecture, protocol and transport layers, message types, lifecycle, and practical implementation in Python and TypeScript to build a custom AI agent that can both converse and perform tasks.

AI AgentsPythonTypeScript
0 likes · 24 min read
Unlock AI Agents with Model Context Protocol (MCP): Deep Dive & Code
AI Large Model Application Practice
AI Large Model Application Practice
Apr 14, 2025 · Artificial Intelligence

What Is Google’s New Agent2Agent (A2A) Protocol and How Does It Enable AI Agent Interoperability?

This article explains the motivation behind Google’s Agent2Agent (A2A) protocol, describes its architecture and key components, compares it with the MCP protocol, and provides a step‑by‑step demo with code showing how to build, run, and test an A2A‑enabled AI agent system.

A2AAI InteroperabilityAgent2Agent
0 likes · 14 min read
What Is Google’s New Agent2Agent (A2A) Protocol and How Does It Enable AI Agent Interoperability?
php Courses
php Courses
Apr 14, 2025 · Fundamentals

Creating and Using Custom Exceptions in Python

This article explains why custom exceptions are needed in Python, shows how to define them—including simple, information‑rich, and subclassed variants—provides practical code examples such as inventory‑shortage and API‑request errors, and outlines best practices for naming, documentation, and inheritance.

Best PracticesCustom ExceptionsError Design
0 likes · 6 min read
Creating and Using Custom Exceptions in Python
Continuous Delivery 2.0
Continuous Delivery 2.0
Apr 14, 2025 · Backend Development

Building a Simple MCP Time Server with FastMCP and Cursor

This article walks through solving Cursor's inaccurate date handling by installing an MCP time server, creating a minimal FastMCP‑based MCP server in Python, configuring Cursor to use it, and demonstrating how to automate time‑stamped task tracking with practical code examples.

CursorMCP ServerPython
0 likes · 6 min read
Building a Simple MCP Time Server with FastMCP and Cursor
Test Development Learning Exchange
Test Development Learning Exchange
Apr 13, 2025 · Backend Development

Mastering API Request Wrappers in Pytest: Reusable GET, POST, PUT, DELETE

Learn how to boost code reuse and maintainability in API automation by encapsulating common HTTP methods (GET, POST, PUT, DELETE, etc.) within a Pytest-friendly RequestUtil class, complete with logging, exception handling, session management, dynamic headers, and timeout support, plus practical test examples.

API testingHTTP requestsLogging
0 likes · 11 min read
Mastering API Request Wrappers in Pytest: Reusable GET, POST, PUT, DELETE
DevOps Engineer
DevOps Engineer
Apr 13, 2025 · Fundamentals

Setting Up Sphinx and ReadTheDocs for Automated Documentation in Python Projects

This guide explains why Sphinx and ReadTheDocs are a powerful combination for generating and hosting documentation, and provides step‑by‑step instructions—including installing dependencies, initializing the project, configuring conf.py, adding a .readthedocs.yml file, and linking the repository—so that documentation is built automatically on each commit.

DevOpsPythonReadTheDocs
0 likes · 6 min read
Setting Up Sphinx and ReadTheDocs for Automated Documentation in Python Projects
Code Mala Tang
Code Mala Tang
Apr 12, 2025 · Fundamentals

Mastering Manacher’s Algorithm: Find the Longest Palindromic Substring in O(N)

Manacher’s algorithm transforms the classic longest palindromic substring problem into a linear‑time solution by preprocessing the string with separators, tracking palindrome radii, and efficiently updating the center and right boundary using mirror positions, with detailed Python code and step‑by‑step illustrations.

Manacher algorithmPythonString processing
0 likes · 12 min read
Mastering Manacher’s Algorithm: Find the Longest Palindromic Substring in O(N)
Python Crawling & Data Mining
Python Crawling & Data Mining
Apr 12, 2025 · Fundamentals

How to Group and Map Data in Pandas: 5 Practical Methods

This article walks through a common Python data‑processing challenge—grouping numeric identifiers with corresponding strings—by presenting five distinct Pandas‑based solutions, complete with code snippets and visual results, enabling readers to efficiently transform raw lists into organized dictionaries.

Code ExamplesData ProcessingPython
0 likes · 8 min read
How to Group and Map Data in Pandas: 5 Practical Methods
Test Development Learning Exchange
Test Development Learning Exchange
Apr 11, 2025 · Backend Development

Using Pytest Markers to Categorize and Run Test Cases

This article explains how to define, register, and use Pytest markers to classify test cases such as smoke, regression, and integration tests, demonstrates command‑line options for selective execution, and shows dynamic marker assignment with practical code examples.

Automation testingPythonTest Selection
0 likes · 5 min read
Using Pytest Markers to Categorize and Run Test Cases
Python Crawling & Data Mining
Python Crawling & Data Mining
Apr 11, 2025 · Fundamentals

How to Remove Adjacent Duplicates from a Python List – 5 Simple Methods

This article walks through a common Python data‑processing challenge—removing consecutive duplicate elements from a list—by presenting five distinct solutions, including itertools.groupby, list comprehensions, explicit loops, generator functions, and enumerate, each illustrated with code snippets and output screenshots.

Pythongeneratoritertools
0 likes · 5 min read
How to Remove Adjacent Duplicates from a Python List – 5 Simple Methods
php Courses
php Courses
Apr 10, 2025 · Fundamentals

Python File Path Handling: os.path and pathlib Guide

This article explains how to work with file and directory paths in Python, covering absolute and relative path concepts, the os.path module functions, the modern pathlib API, common operations such as joining, normalizing, traversing, and creating files and directories, and best practices for cross‑platform compatibility.

File PathsPythoncross-platform
0 likes · 8 min read
Python File Path Handling: os.path and pathlib Guide
Code Mala Tang
Code Mala Tang
Apr 10, 2025 · Fundamentals

Unlock Python’s Hidden Power: Mastering Context Managers for Cleaner Code

This article explains what Python context managers are, how they work under the hood, and why they are far more useful than simple file handling, providing practical examples ranging from resource management and testing to advanced asynchronous usage and common pitfalls.

Best PracticesPythonResource Management
0 likes · 21 min read
Unlock Python’s Hidden Power: Mastering Context Managers for Cleaner Code
Python Programming Learning Circle
Python Programming Learning Circle
Apr 9, 2025 · Fundamentals

Python Code Optimization Techniques for Faster Execution

This article presents a comprehensive collection of Python performance‑boosting techniques, covering fundamental optimization principles, avoiding global variables and attribute access, eliminating unnecessary abstraction and data copying, loop optimizations, just‑in‑time compilation with numba, and selecting appropriate built‑in data structures to achieve significant speed improvements.

BenchmarkingOptimizationPython
0 likes · 15 min read
Python Code Optimization Techniques for Faster Execution
Python Programming Learning Circle
Python Programming Learning Circle
Apr 9, 2025 · Fundamentals

10 Practical Python Code Simplification Techniques

This article presents ten concise Python techniques—including list comprehensions, zip, lambda functions, generators, f‑strings, collections, decorators, enumerate, the walrus operator, and itertools—to dramatically reduce code length, improve readability, and boost development efficiency.

GeneratorsPythondecorators
0 likes · 6 min read
10 Practical Python Code Simplification Techniques
php Courses
php Courses
Apr 9, 2025 · Fundamentals

Comprehensive Guide to File Operations in Python

This article provides a thorough introduction to Python file operations, covering opening modes, reading and writing techniques, context managers, advanced handling like binary files and CSV processing, best practices, and practical exercises to master file I/O.

File I/OPythonprogramming
0 likes · 8 min read
Comprehensive Guide to File Operations in Python
Mingyi World Elasticsearch
Mingyi World Elasticsearch
Apr 8, 2025 · Backend Development

Boost Elasticsearch 8.x Search with Vector Embeddings

This article explains how vector embeddings enhance Elasticsearch 8.x search, walks through the concepts of dense vectors, shows step‑by‑step Python and Logstash pipelines for generating and storing embeddings, compares their pros and cons, and offers guidance on selecting the right approach for large‑scale log data.

ElasticsearchLogstashPython
0 likes · 12 min read
Boost Elasticsearch 8.x Search with Vector Embeddings
php Courses
php Courses
Apr 8, 2025 · Fundamentals

Understanding Python Closures and Decorators

This article explains Python closures and decorators, detailing their definitions, formation conditions, practical examples, common use cases, and how decorators rely on closures, while providing code snippets for counters, timing, and repeatable execution.

DecoratorFunction WrappingHigher-Order Functions
0 likes · 14 min read
Understanding Python Closures and Decorators
Tencent Technical Engineering
Tencent Technical Engineering
Apr 7, 2025 · Cloud Native

Deploying MCP Server on Serverless Cloud Functions with Cube Secure Containers

The article explains how to deploy a Model Context Protocol (MCP) server—illustrated with a Python weather‑query example—on Tencent Cloud Function using either a Docker image or direct code upload, leverages Cube’s high‑security lightweight containers for fast start‑up, and highlights serverless benefits such as automatic scaling, cost efficiency, and simplified operations compared with Kubernetes for AI agents and tool integration.

Cloud FunctionsCube Secure ContainerPython
0 likes · 21 min read
Deploying MCP Server on Serverless Cloud Functions with Cube Secure Containers
21CTO
21CTO
Apr 7, 2025 · Fundamentals

Why Python’s New PEP 751 Lock File Format Matters for Reproducible Installations

Python has adopted the new PEP 751 lock‑file format, a standardized .toml‑based solution that replaces diverse, tool‑specific formats, enabling reproducible installations without dynamic resolution, and sparking discussion among core developers and packaging tool creators about adoption, compatibility, and the challenges of standardizing across the ecosystem.

PEP 751PythonReproducible Builds
0 likes · 5 min read
Why Python’s New PEP 751 Lock File Format Matters for Reproducible Installations
AI Large Model Application Practice
AI Large Model Application Practice
Apr 7, 2025 · Artificial Intelligence

8 Leading LLM Agent Frameworks and How to Plug In MCP Server

This article surveys eight popular large‑language‑model (LLM) agent development frameworks—OpenAI Agents SDK, LangGraph, LlamaIndex, AutoGen, Pydantic AI, SmolAgents, Camel, and CrewAI—explaining each’s key features and providing concrete Python code to integrate the MCP Server for tool access.

LLMPythonagents
0 likes · 15 min read
8 Leading LLM Agent Frameworks and How to Plug In MCP Server
Goodme Frontend Team
Goodme Frontend Team
Apr 7, 2025 · Frontend Development

How to Shrink Gigantic Web Fonts to Kilobytes: Subsetting & WOFF2 Tricks

This article explains why Chinese web fonts can be huge, compares TTF and WOFF2 sizes, and provides practical steps—including font subsetting with Python fontTools and on‑the‑fly loading via the FontFace API—to reduce font files from megabytes to a few kilobytes and dramatically speed up page rendering.

Font SubsettingPythonWOFF2
0 likes · 9 min read
How to Shrink Gigantic Web Fonts to Kilobytes: Subsetting & WOFF2 Tricks
Code Mala Tang
Code Mala Tang
Apr 5, 2025 · Fundamentals

How to Write Loop-Free Python Code: Faster, Cleaner Alternatives

This article explains why traditional Python loops can hurt performance and readability, and demonstrates six loop‑free techniques—including list comprehensions, map/filter, built‑in functions like sum/max/min, NumPy vectorization, generators, and dictionary/set comprehensions—providing concise, faster, and more Pythonic code examples.

Functional ProgrammingNumPyPython
0 likes · 10 min read
How to Write Loop-Free Python Code: Faster, Cleaner Alternatives
Fun with Large Models
Fun with Large Models
Apr 4, 2025 · Artificial Intelligence

MCP Explained: The Revolutionary Protocol for Large‑Model Real‑World Interaction

The article analyzes the Model Context Protocol (MCP) introduced by Anthropic, detailing its standardized, distributed architecture that overcomes the limitations of Function Calling, and provides step‑by‑step Python examples for building MCP client and server, demonstrating how large language models can reliably interact with external tools.

Model Context ProtocolPythonmcp
0 likes · 16 min read
MCP Explained: The Revolutionary Protocol for Large‑Model Real‑World Interaction
Code Mala Tang
Code Mala Tang
Apr 3, 2025 · Backend Development

Build an Anthropic MCP Server with FastAPI in Minutes

This guide explains why the Anthropic MCP protocol is essential for AI‑agent integration and walks you through building a FastAPI server, adding the fastapi‑mcp extension, and configuring the MCP endpoint so your application can communicate seamlessly with AI agents.

AI AgentsBackend DevelopmentFastAPI
0 likes · 5 min read
Build an Anthropic MCP Server with FastAPI in Minutes
Model Perspective
Model Perspective
Apr 3, 2025 · Artificial Intelligence

Turning Metrics into Music: A Sensitivity & Specificity Song Explained

This article showcases an AI‑generated song that teaches the four core classification metrics—sensitivity, specificity, precision, and recall—by presenting lyrical explanations, a confusion‑matrix overview, Python code for MIDI creation, and a step‑by‑step guide to producing the final video.

AI musicMIDIPython
0 likes · 8 min read
Turning Metrics into Music: A Sensitivity & Specificity Song Explained
php Courses
php Courses
Apr 3, 2025 · Fundamentals

Understanding Higher-Order Functions in Python

This article explains Python's higher-order functions, covering their definition, how they can accept or return other functions, built-in examples like map, filter, reduce, and demonstrates custom higher-order functions, closures, and decorators with practical code snippets.

MAPPythonclosures
0 likes · 6 min read
Understanding Higher-Order Functions in Python
Code Mala Tang
Code Mala Tang
Apr 3, 2025 · Fundamentals

Unlock Python’s Ellipsis (…) – Powerful Uses Beyond Slicing

Discover how Python’s three-dot ellipsis (…) isn’t just a placeholder but a versatile singleton object used for slicing multidimensional arrays, marking unfinished code, enhancing type hints, and even evaluating to True, with practical examples and insights into its unique behavior.

NumPyPythonSingleton
0 likes · 6 min read
Unlock Python’s Ellipsis (…) – Powerful Uses Beyond Slicing
Sohu Tech Products
Sohu Tech Products
Apr 2, 2025 · Artificial Intelligence

How SecretFlow Enables Privacy‑Preserving AI Model Training with Secure Multi‑Party Computation

SecretFlow is an open‑source privacy‑computing framework that lets multiple parties perform encrypted data analysis and AI model training without exposing raw data, offering unified MPC, federated learning and differential privacy features, with step‑by‑step Docker installation, Python examples, and a modular architecture for secure multi‑party computation.

AI model trainingData ProtectionPrivacy Computing
0 likes · 11 min read
How SecretFlow Enables Privacy‑Preserving AI Model Training with Secure Multi‑Party Computation
Architect
Architect
Apr 2, 2025 · Artificial Intelligence

Connecting LLMs to External Tools with Anthropic’s Model Context Protocol (MCP)

This article explains the open‑source Model Context Protocol (MCP) created by Anthropic, describes its client‑server architecture for safely linking LLMs with external data sources and tools, and provides a complete step‑by‑step Python tutorial—including environment setup, server and client code—to demonstrate MCP in action.

AI AgentsLLM integrationLangChain
0 likes · 9 min read
Connecting LLMs to External Tools with Anthropic’s Model Context Protocol (MCP)
Code Mala Tang
Code Mala Tang
Apr 1, 2025 · Backend Development

Enforcing Python Function Timeouts: Libraries, Multiprocessing & Subprocess

This article explains why limiting a function's execution time is crucial for stability, and demonstrates multiple Python techniques—including the func-timeout library, custom multiprocessing, subprocess.run, and signal handling—to set and manage timeouts effectively.

Error HandlingPythonfunction timeout
0 likes · 8 min read
Enforcing Python Function Timeouts: Libraries, Multiprocessing & Subprocess
php Courses
php Courses
Apr 1, 2025 · Fundamentals

Understanding Python Magic (Dunder) Methods

This article explains Python's magic (dunder) methods, categorizing them by purpose—construction, representation, comparison, arithmetic, container behavior, callability, and context management—and provides clear code examples illustrating how to customize class behavior for more Pythonic, intuitive objects.

Object-OrientedPythondunder methods
0 likes · 11 min read
Understanding Python Magic (Dunder) Methods
php Courses
php Courses
Mar 31, 2025 · Fundamentals

Understanding Inheritance and Polymorphism in Python OOP

This article explains the core object‑oriented programming concepts of inheritance and polymorphism in Python, detailing their advantages, syntax, method overriding, and practical examples that demonstrate code reuse, extensibility, and flexible interfaces through class hierarchies and duck‑typing.

InheritanceOOPPolymorphism
0 likes · 7 min read
Understanding Inheritance and Polymorphism in Python OOP