Tag

Python

1 views collected around this technical thread.

Code Mala Tang
Code Mala Tang
Jun 12, 2025 · Backend Development

Essential FastAPI Middleware Guide: Boost Security, Performance, and Functionality

This article explains how FastAPI middleware sits between incoming requests and outgoing responses, detailing built‑in and third‑party middleware such as CORS, GZip, HTTPS redirect, session, trusted host, error handling, rate limiting, authentication, custom headers, logging, timeout, trailing‑slash handling, IP whitelisting, proxy headers, CSRF protection, context management and global state, each with usage scenarios and code examples.

BackendFastAPIPython
0 likes · 20 min read
Essential FastAPI Middleware Guide: Boost Security, Performance, and Functionality
Python Programming Learning Circle
Python Programming Learning Circle
Jun 12, 2025 · Fundamentals

Essential Python Libraries Every Developer Should Master

This guide introduces the most popular Python libraries across web development, GUI creation, data analysis, machine learning, and automation, explaining their purposes, advantages, selection criteria, and providing concise code examples to help developers quickly adopt the right tools for their projects.

Pythonautomationdata-analysis
0 likes · 16 min read
Essential Python Libraries Every Developer Should Master
Code Mala Tang
Code Mala Tang
Jun 11, 2025 · Fundamentals

Master Python’s @dataclass: Simplify Class Creation and Management

Learn how Python’s @dataclass decorator, introduced in Python 3.7, streamlines class definition by automatically generating constructors, string representations, and more, while covering default values, mutable defaults handling, field exclusion, read‑only classes, and conversion to tuples and dictionaries for efficient data handling.

Pythonasdictclass definition
0 likes · 8 min read
Master Python’s @dataclass: Simplify Class Creation and Management
Python Programming Learning Circle
Python Programming Learning Circle
Jun 11, 2025 · Fundamentals

Master Python’s @ Operator: Matrix Multiplication Made Simple

This article explains Python's @ operator for matrix multiplication, shows basic usage with NumPy, contrasts it with element‑wise *, demonstrates matrix‑vector multiplication, highlights common dimension‑mismatch errors, and provides a concise summary for efficient linear‑algebra calculations.

NumPyOperatorPython
0 likes · 4 min read
Master Python’s @ Operator: Matrix Multiplication Made Simple
Python Programming Learning Circle
Python Programming Learning Circle
Jun 11, 2025 · Fundamentals

Six Powerful Ways to Merge Two Python Lists Efficiently

This guide explores six practical Python techniques for merging two lists—including the + operator, extend(), zip(), unpacking, list comprehensions, and itertools.chain()—detailing code examples, performance considerations, and when to choose each method for efficient data handling.

Pythonextenditertools
0 likes · 5 min read
Six Powerful Ways to Merge Two Python Lists Efficiently
DataFunTalk
DataFunTalk
Jun 11, 2025 · Backend Development

Master Modern Web Scraping: From Classic Tools to DeepSeek AI Integration

This article provides a comprehensive overview of web‑scraping technologies, compares popular tools such as requests, BeautifulSoup and Selenium, introduces AI‑assisted crawling with DeepSeek, and walks through practical steps for using BrightData’s platform to collect industry data, complete with ready‑to‑run Python code.

BeautifulSoupBrightDataDeepSeek
0 likes · 13 min read
Master Modern Web Scraping: From Classic Tools to DeepSeek AI Integration
Code Mala Tang
Code Mala Tang
Jun 10, 2025 · Backend Development

Boost Your FastAPI API Performance with Redis Caching: A Step‑by‑Step Guide

This tutorial explains how to integrate Redis caching into a FastAPI application, covering installation, connection handling, cache expiration, testing, cache clearing, and best‑practice considerations to dramatically improve API response times and scalability.

BackendCachingFastAPI
0 likes · 9 min read
Boost Your FastAPI API Performance with Redis Caching: A Step‑by‑Step Guide
Python Programming Learning Circle
Python Programming Learning Circle
Jun 10, 2025 · Backend Development

How to Scrape Beike Real‑Estate Listings with Python: A Complete Guide

This tutorial walks you through building a Python web‑scraper for Beike (Lianjia) second‑hand property listings, covering session spoofing, dynamic parameters, pagination, multithreaded detail fetching, data cleaning, and exporting results to Excel in a step‑by‑step manner.

BeautifulSoupData ExtractionPython
0 likes · 18 min read
How to Scrape Beike Real‑Estate Listings with Python: A Complete Guide
Code Mala Tang
Code Mala Tang
Jun 9, 2025 · Backend Development

Build High‑Performance APIs with FastAPI and Swagger: A Hands‑On Guide

Learn how to create fast, modern Python APIs using FastAPI, automatically generate interactive Swagger documentation, and enhance your endpoints with validation, metadata, and a full-featured to‑do list project, all illustrated with clear code examples and step‑by‑step deployment instructions.

API DevelopmentBackend DevelopmentFastAPI
0 likes · 10 min read
Build High‑Performance APIs with FastAPI and Swagger: A Hands‑On Guide
Test Development Learning Exchange
Test Development Learning Exchange
Jun 9, 2025 · Fundamentals

Master Python Control Flow: If/Else, For, While & Practical Tips

This article introduces Python control flow, explaining conditional statements (if, elif, else) and loop constructs (for, while) with clear syntax, practical examples, tips, and exercises to help readers master decision‑making and iteration in their programs.

Code ExamplesControl FlowPython
0 likes · 7 min read
Master Python Control Flow: If/Else, For, While & Practical Tips
Python Programming Learning Circle
Python Programming Learning Circle
Jun 9, 2025 · Fundamentals

Quickly Set Up a New Python Project in PyCharm – Step‑by‑Step Guide

This step‑by‑step tutorial walks beginners through creating a new Python project in PyCharm, covering project location selection, Conda interpreter configuration, isolated environment creation, Python version choice, Conda executable setup, opening the project, exploring the directory structure, writing and running a simple program, and where to download the free Community edition.

CondaIDE setupProject tutorial
0 likes · 4 min read
Quickly Set Up a New Python Project in PyCharm – Step‑by‑Step Guide
Python Programming Learning Circle
Python Programming Learning Circle
Jun 9, 2025 · Fundamentals

Create a Cute Slime Desktop Pet with Python – Step‑by‑Step Guide

This tutorial explains how to set up, customize, and package a playful slime desktop pet written in Python, covering required dependencies, command‑line installation, configuration options, and creating a standalone executable for easy distribution.

Pythondesktop-petpyinstaller
0 likes · 4 min read
Create a Cute Slime Desktop Pet with Python – Step‑by‑Step Guide
Code Mala Tang
Code Mala Tang
Jun 8, 2025 · Fundamentals

Why Python’s a, b = b, a Isn’t Magic – The Real Mechanics Explained

This article demystifies Python’s a, b = b, a idiom by detailing how tuple packing and unpacking work, the exact evaluation order, the CPython bytecode implementation, comparisons with C, C++, Java, JavaScript, and the performance and memory implications of the technique.

BytecodePerformancePython
0 likes · 17 min read
Why Python’s a, b = b, a Isn’t Magic – The Real Mechanics Explained
Architecture and Beyond
Architecture and Beyond
Jun 8, 2025 · Frontend Development

Why Server‑Sent Events (SSE) Power Real‑Time Typing Effects in AI Chat Apps

Server‑Sent Events (SSE) offer a lightweight, HTTP‑native solution for real‑time, one‑way streaming, making them ideal for AI chat applications that need a typewriter‑style response, with advantages over WebSockets such as easy implementation, automatic reconnection, broad compatibility, and simple debugging.

JavaScriptPythonReal-time Streaming
0 likes · 13 min read
Why Server‑Sent Events (SSE) Power Real‑Time Typing Effects in AI Chat Apps
Code Mala Tang
Code Mala Tang
Jun 8, 2025 · Fundamentals

Boost Python Performance: 10 Proven Memory Optimization Tricks

Learn how hidden memory leaks, inefficient data structures, and poor import practices can slow Python scripts, and apply practical techniques—such as using weakref, generators, __slots__, lazy imports, and profiling tools—to dramatically reduce memory usage and speed up execution.

Performance OptimizationPythonbest practices
0 likes · 11 min read
Boost Python Performance: 10 Proven Memory Optimization Tricks
Test Development Learning Exchange
Test Development Learning Exchange
Jun 7, 2025 · Backend Development

Build a Lightweight Python GUI for Testing REST and SOAP APIs (with .exe Packaging)

This tutorial walks you through creating a compact Python Tkinter GUI that can send GET/POST requests, handle JSON or XML payloads, support Bearer tokens, clean illegal URL characters, and be packaged into a standalone Windows executable using PyInstaller.

API testingHTTPJSON
0 likes · 12 min read
Build a Lightweight Python GUI for Testing REST and SOAP APIs (with .exe Packaging)
Python Programming Learning Circle
Python Programming Learning Circle
Jun 7, 2025 · Fundamentals

How to Choose the Right Programming Language for Your Project

Choosing the right programming language depends on project requirements such as performance, development speed, platform compatibility, and team expertise, with C++ excelling in low‑level control, Java dominating enterprise back‑ends, Python leading in AI and rapid development, and C# powering Windows and Unity game applications.

C++JavaPython
0 likes · 9 min read
How to Choose the Right Programming Language for Your Project
Python Programming Learning Circle
Python Programming Learning Circle
Jun 7, 2025 · Backend Development

Master Python Web Scraping: From Requests to Selenium and Scrapy

Learn how to efficiently scrape web pages using Python by exploring multiple approaches—including simple requests with BeautifulSoup, fast parsing with lxml, dynamic content extraction with Selenium, and large‑scale crawling with Scrapy—complete with installation steps, code snippets, and detailed explanations.

BeautifulSoupPythonRequests
0 likes · 10 min read
Master Python Web Scraping: From Requests to Selenium and Scrapy
Test Development Learning Exchange
Test Development Learning Exchange
Jun 7, 2025 · Fundamentals

Master Python Basics in 30 Minutes: Variables, Loops, Functions & More

Within just 30 minutes, this guide walks beginners through Python’s core syntax—including variables, data types, operators, control flow, functions, and essential data structures—providing clear explanations and runnable code examples so you can write your first programs and build a solid foundation.

BasicsProgrammingPython
0 likes · 6 min read
Master Python Basics in 30 Minutes: Variables, Loops, Functions & More
Code Mala Tang
Code Mala Tang
Jun 6, 2025 · Fundamentals

Master Python Comments: Best Practices and Common Pitfalls

This guide explains what comments are in Python, shows how to write single‑line and multi‑line comments using the # symbol, warns against misuse of triple quotes, covers docstring usage, and provides IDE shortcut keys for efficient commenting.

CommentsDocstringsIDE shortcuts
0 likes · 7 min read
Master Python Comments: Best Practices and Common Pitfalls