Tagged articles
5000 articles
Page 18 of 50
Test Development Learning Exchange
Test Development Learning Exchange
Sep 11, 2024 · Backend Development

Python Concurrency, Asyncio, Flask Web Development, SQLite, and Git Basics

This article introduces Python concurrency models—including threading, multiprocessing, and asyncio—provides step‑by‑step Flask web application examples, demonstrates SQLite database operations, and covers essential Git commands for version control, all with complete code snippets for practical learning.

Backend DevelopmentFlaskPython
0 likes · 8 min read
Python Concurrency, Asyncio, Flask Web Development, SQLite, and Git Basics
Test Development Learning Exchange
Test Development Learning Exchange
Sep 10, 2024 · Fundamentals

Python Basics: Dictionaries, Sets, File Operations, Regular Expressions, Logging, Unit Testing, Profiling, and Third‑Party Libraries

This article introduces core Python concepts—including dictionaries and sets as key‑value and unique collections, file and directory manipulation with the os module, regular expression handling, logging setup, unit testing with unittest, performance profiling via cProfile, and using popular third‑party libraries such as requests and BeautifulSoup.

Data StructuresFile OperationsPython
0 likes · 7 min read
Python Basics: Dictionaries, Sets, File Operations, Regular Expressions, Logging, Unit Testing, Profiling, and Third‑Party Libraries
Test Development Learning Exchange
Test Development Learning Exchange
Sep 10, 2024 · Fundamentals

Master Python Basics: Error Handling, Files, OOP, and More

This guide walks through essential Python concepts—including try/except error handling, file reading and writing, class definitions with inheritance, variable scopes, common built‑in functions, docstrings, comments, and command‑line argument processing—providing clear code examples for each topic.

DocstringsError HandlingFile I/O
0 likes · 8 min read
Master Python Basics: Error Handling, Files, OOP, and More
Python Crawling & Data Mining
Python Crawling & Data Mining
Sep 10, 2024 · Backend Development

Merging Files by Keyword with Python and Pandas

This article walks through a Python‑based solution that extracts files sharing specific keywords, pulls numeric data from the second column, and concatenates the results horizontally using pandas, providing clear code snippets and practical tips for automating such file‑processing tasks.

Data ProcessingPythonautomation
0 likes · 6 min read
Merging Files by Keyword with Python and Pandas
Open Source Linux
Open Source Linux
Sep 10, 2024 · Operations

Boost Ops Efficiency: 5 Python Scripts Every Engineer Should Use

This article explains how Python scripts can automate key operations tasks—connecting to remote servers, parsing logs, monitoring system health, batch deploying software, and handling backups—enhancing efficiency and reducing manual errors for engineers.

DevOpsOperations AutomationPython
0 likes · 9 min read
Boost Ops Efficiency: 5 Python Scripts Every Engineer Should Use
Python Programming Learning Circle
Python Programming Learning Circle
Sep 9, 2024 · Fundamentals

Classification and Implementation of Common Sorting Algorithms in Python

This article classifies sorting algorithms into internal, external, comparison, and non‑comparison types, discusses stability and time‑complexity, and provides clear Python implementations with examples for Bubble Sort, Selection Sort, Insertion Sort, Shell Sort, Merge Sort, Quick Sort, Heap Sort, Counting Sort, Bucket Sort, and Radix Sort.

Data StructuresPythonSorting Algorithms
0 likes · 44 min read
Classification and Implementation of Common Sorting Algorithms in Python
Test Development Learning Exchange
Test Development Learning Exchange
Sep 8, 2024 · Fundamentals

Python Essentials: List, Dictionary, Set Comprehensions, Unpacking, and Useful Built‑in Functions

This guide presents a concise collection of Python fundamentals, covering list, dictionary, and set comprehensions, various unpacking techniques, conditional expressions, common built‑in functions such as zip, enumerate, sorted, reversed, join, map, filter, any/all, min/max, sum, reduce, as well as useful modules like itertools, os, sys, time, collections, functools, heapq, bisect, json, re, and numpy, each illustrated with clear code examples.

ComprehensionsPythonbuilt-in functions
0 likes · 11 min read
Python Essentials: List, Dictionary, Set Comprehensions, Unpacking, and Useful Built‑in Functions
IT Services Circle
IT Services Circle
Sep 8, 2024 · Artificial Intelligence

10 Essential Plots for Linear Regression with Python Code Examples

This tutorial explains ten crucial visualizations for linear regression—scatter plot, trend line, residual plot, normal probability plot, learning curve, bias‑variance tradeoff, residuals vs fitted, partial regression, leverage, and Cook's distance—each illustrated with clear Python code using scikit‑learn, matplotlib, seaborn, and statsmodels.

Data visualizationMatplotlibPython
0 likes · 21 min read
10 Essential Plots for Linear Regression with Python Code Examples
Test Development Learning Exchange
Test Development Learning Exchange
Sep 8, 2024 · Fundamentals

Common Built-in Functions in Python: Type Conversion, Math Operations, Control Flow, Sequence Operations, I/O, and More

This article provides a comprehensive overview of Python's built-in functions, covering type conversion, mathematical operations, control flow utilities, sequence manipulation, input/output handling, common utilities, functional programming tools, memory management, and type checking with clear code examples.

Functional ProgrammingPythonType Conversion
0 likes · 8 min read
Common Built-in Functions in Python: Type Conversion, Math Operations, Control Flow, Sequence Operations, I/O, and More
DevOps Engineer
DevOps Engineer
Sep 8, 2024 · Fundamentals

Overview of Python Packaging Authority (PyPA) Tools and Their Relationships

PyPA, the Python Packaging Authority, oversees key tools such as pip, setuptools, packaging, wheel, virtualenv, twine, and build, each serving distinct roles in package installation, creation, distribution, and environment isolation, with pyproject.toml coordinating their interactions to streamline Python development workflows.

PyPAPythonpackaging
0 likes · 6 min read
Overview of Python Packaging Authority (PyPA) Tools and Their Relationships
Test Development Learning Exchange
Test Development Learning Exchange
Sep 7, 2024 · Fundamentals

Understanding Python Decorators: Introduction, Common Examples, and Summary

This article introduces Python decorators, explains their purpose, and provides practical examples of common decorators such as @staticmethod, @property, @lru_cache, @wraps, @retry, @contextmanager, @dataclass, @cached_property, @singledispatch, and @timeit, concluding with a summary of their benefits for clean, maintainable code.

Code ExamplePythonfundamentals
0 likes · 8 min read
Understanding Python Decorators: Introduction, Common Examples, and Summary
Test Development Learning Exchange
Test Development Learning Exchange
Sep 5, 2024 · Backend Development

Build a Clean, Efficient MySQL Utility Class in Python

This article walks you through designing a lightweight, high‑performance MySQL helper class in Python, covering singleton connection management, robust exception handling, logging, context‑managed connections, and practical query/execute methods with example code and usage scenarios.

DatabaseError HandlingLogging
0 likes · 7 min read
Build a Clean, Efficient MySQL Utility Class in Python
21CTO
21CTO
Sep 5, 2024 · Artificial Intelligence

Python vs Julia vs Rust: Which Language Wins for Data Science?

This article compares Python, Julia, and Rust—the three leading languages in data science—detailing their strengths, ecosystem support, performance, and deployment challenges to help developers choose the most suitable tool for their projects.

EcosystemJuliaPython
0 likes · 9 min read
Python vs Julia vs Rust: Which Language Wins for Data Science?
Python Programming Learning Circle
Python Programming Learning Circle
Sep 4, 2024 · Artificial Intelligence

Building an Automatic Math Grading System with Python: Data Generation, CNN Training, Image Segmentation, and Result Feedback

This tutorial explains how to create an automatic math‑grading tool in Python by generating synthetic digit images, training a small CNN on the data, segmenting handwritten equations with projection techniques, recognizing characters, evaluating the expressions, and overlaying the results back onto the original image.

CNNOCRPython
0 likes · 30 min read
Building an Automatic Math Grading System with Python: Data Generation, CNN Training, Image Segmentation, and Result Feedback
21CTO
21CTO
Sep 2, 2024 · Fundamentals

6 Essential Python Coding Habits Every Beginner Should Master

This article outlines six practical habits—following PEP 8, using the latest Python version, commenting code, employing linters, leveraging built‑in functions and libraries, and promptly fixing issues—to help new Python developers write clean, maintainable, and error‑free code throughout their careers.

Best PracticesPEP 8Python
0 likes · 10 min read
6 Essential Python Coding Habits Every Beginner Should Master
Python Programming Learning Circle
Python Programming Learning Circle
Sep 2, 2024 · Backend Development

Integrating Alipay Payment Gateway in Python Projects

This article explains why third‑party payment is needed, outlines Alipay’s workflow, guides through obtaining APPID and generating public/private keys, and provides a complete Python implementation—including key handling, request signing, and API usage—to integrate Alipay payments into backend applications.

AlipayBackendPayment Integration
0 likes · 7 min read
Integrating Alipay Payment Gateway in Python Projects
Test Development Learning Exchange
Test Development Learning Exchange
Aug 31, 2024 · Fundamentals

Understanding Python’s map() Function: Syntax, Basic and Advanced Usage with Examples

This article explains Python's built‑in map() function, covering its syntax, basic usage with lambda and regular functions, and advanced scenarios such as handling multiple iterables, dictionaries, strings, conditional filtering, zip, nested lists, and compares it with list comprehensions, providing clear code examples throughout.

Code ExamplesFunctional ProgrammingMAP
0 likes · 6 min read
Understanding Python’s map() Function: Syntax, Basic and Advanced Usage with Examples
Satori Komeiji's Programming Classroom
Satori Komeiji's Programming Classroom
Aug 29, 2024 · Fundamentals

How Python Dictionaries Resize: The Full Expansion Process

The article explains Python's dict resizing mechanism, detailing when the hash table grows (when used entries reach two‑thirds of capacity), how the new size is chosen as the smallest power‑of‑two ≥ ma_used × 3, and the exact steps the interpreter takes to reallocate and rebuild the underlying key and entry arrays.

Pythoncombined-tabledict
0 likes · 12 min read
How Python Dictionaries Resize: The Full Expansion Process
Python Programming Learning Circle
Python Programming Learning Circle
Aug 28, 2024 · Backend Development

Python Web Scraper for Downloading Online Comics

This article explains how to build a Python script that searches a comic website, extracts chapter links and image URLs using requests and BeautifulSoup, and downloads the images into organized folders with multithreaded support, while outlining required modules and potential improvements.

Manga DownloaderPythonWeb Scraping
0 likes · 8 min read
Python Web Scraper for Downloading Online Comics
Test Development Learning Exchange
Test Development Learning Exchange
Aug 27, 2024 · Fundamentals

An Introduction to Python's functools Module and Its Common Utilities

This article introduces Python's functools module, explaining key utilities such as partial functions, lru_cache, update_wrapper, wraps, cmp_to_key, singledispatch, FunctionTool, cache, and partialmethod, and provides practical code examples demonstrating how to create preset request functions, cache results, update signatures, and implement polymorphic behavior.

Code ExamplesPythonfunctools
0 likes · 7 min read
An Introduction to Python's functools Module and Its Common Utilities
Baobao Algorithm Notes
Baobao Algorithm Notes
Aug 27, 2024 · Artificial Intelligence

Unlock Free GLM-4-Flash API: Step-by-Step Guide, Code Samples, and Logic Puzzle Test

This article explores the free GLM-4-Flash API from Zhipu AI, detailing its lightweight architecture, performance specs, a logic‑puzzle demonstration, and provides a comprehensive step‑by‑step tutorial—including data upload, model fine‑tuning, deployment commands and example code for building a LangChain‑based knowledge‑base retrieval system.

AI deploymentFree APIGLM-4-Flash
0 likes · 11 min read
Unlock Free GLM-4-Flash API: Step-by-Step Guide, Code Samples, and Logic Puzzle Test
Test Development Learning Exchange
Test Development Learning Exchange
Aug 27, 2024 · Fundamentals

Introduction to Higher-Order Functions in Python

This article introduces Python's higher-order functions—including map, filter, reduce, partial, lambda, and related modules such as itertools, functools, contextlib, concurrent.futures, and decorator—explaining their concepts and demonstrating practical code examples for simplifying API testing and automation.

MAPPythonfilter
0 likes · 8 min read
Introduction to Higher-Order Functions in Python
21CTO
21CTO
Aug 26, 2024 · Fundamentals

6 Essential Python Coding Habits Every Developer Should Master

This article outlines six practical Python coding habits—including following PEP 8, using the latest version, commenting effectively, employing linters, leveraging built‑in functions and libraries, and fixing issues promptly—to help developers write clean, maintainable, and error‑free code.

PEP 8Pythonbuilt-in functions
0 likes · 9 min read
6 Essential Python Coding Habits Every Developer Should Master
Test Development Learning Exchange
Test Development Learning Exchange
Aug 25, 2024 · Fundamentals

Common Python List Operations: Sorting, Filtering, Searching, Merging, and More

This article demonstrates ten practical Python list techniques—including sorting by ID, filtering by condition, locating elements, removing items, merging lists, finding intersections and differences, converting to dictionaries, using list comprehensions, and deduplicating—each illustrated with clear code examples and expected output.

ListPythonSearching
0 likes · 6 min read
Common Python List Operations: Sorting, Filtering, Searching, Merging, and More
Test Development Learning Exchange
Test Development Learning Exchange
Aug 25, 2024 · Fundamentals

Using Python's shutil Module for File and Directory Operations

This article introduces Python's built‑in shutil module, explains its key functions for copying, moving, deleting, archiving, and retrieving file information, and provides comprehensive code examples demonstrating how to prepare test files and perform common file‑system tasks such as copying files, moving directories, and creating archives.

Pythonarchivecopy
0 likes · 7 min read
Using Python's shutil Module for File and Directory Operations
Python Programming Learning Circle
Python Programming Learning Circle
Aug 23, 2024 · Artificial Intelligence

Getting Started with Python Generative AI: Six Practical Projects Using Llama 2, LangChain, Streamlit, Gradio, FastAPI and SQL

This article presents six hands‑on Python generative‑AI projects—ranging from a Llama 2 chatbot built with Streamlit and Replicate to natural‑language‑to‑SQL conversion using LlamaIndex and SQLAlchemy—complete with environment setup, required code snippets, deployment tips and resource links for further exploration.

FastAPIGenerative AIGradio
0 likes · 20 min read
Getting Started with Python Generative AI: Six Practical Projects Using Llama 2, LangChain, Streamlit, Gradio, FastAPI and SQL
Python Programming Learning Circle
Python Programming Learning Circle
Aug 23, 2024 · Fundamentals

A Comprehensive Overview of Essential Python Libraries

This article provides a detailed overview of over a hundred essential Python libraries spanning environment management, packaging, file handling, date‑time utilities, text processing, office document formats, databases, networking, web frameworks, and concurrency, illustrating Python's vast ecosystem for diverse development needs.

Data ProcessingPythonautomation
0 likes · 16 min read
A Comprehensive Overview of Essential Python Libraries
Test Development Learning Exchange
Test Development Learning Exchange
Aug 23, 2024 · Fundamentals

Common Python String Operations: Concatenation, Splitting, Searching, Replacement, and More

This article demonstrates ten essential Python string manipulation techniques—including concatenation, splitting, searching, replacement, case conversion, slicing, formatting, whitespace trimming, list conversion, and URL encoding/decoding—each illustrated with clear code examples and expected output for practical API development.

Backend DevelopmentPythonString Manipulation
0 likes · 4 min read
Common Python String Operations: Concatenation, Splitting, Searching, Replacement, and More
21CTO
21CTO
Aug 22, 2024 · Artificial Intelligence

Best Programming Languages for AI: Python, R, Java, LISP & More

This article surveys the most suitable programming languages for artificial intelligence, detailing why Python, R, Java, LISP, Prolog, C++, Haskell, JavaScript, and Julia each excel in AI development, and provides practical FAQs for developers choosing the right language.

AIJavaPython
0 likes · 15 min read
Best Programming Languages for AI: Python, R, Java, LISP & More
AI Large Model Application Practice
AI Large Model Application Practice
Aug 22, 2024 · Artificial Intelligence

Building a Multi‑Agent AI Research Assistant with LangGraph and GPT‑Researcher

This article explains how to construct a multi‑agent AI research assistant using LangGraph and the open‑source GPT‑Researcher project, detailing the system architecture, agent roles, state design, workflow creation, parallel sub‑processes, and code examples for autonomous online research and report generation.

AIGPT-ResearcherLangGraph
0 likes · 13 min read
Building a Multi‑Agent AI Research Assistant with LangGraph and GPT‑Researcher
Baidu Geek Talk
Baidu Geek Talk
Aug 21, 2024 · Artificial Intelligence

Step-by-Step PCA Face Recognition with PaddlePaddle

This article walks through using PaddlePaddle's linear algebra API to vectorize face images, load the ORL dataset, implement PCA for dimensionality reduction, and evaluate a simple face‑recognition classifier, providing full code, installation steps, and experimental results.

PCAPaddlePaddlePython
0 likes · 11 min read
Step-by-Step PCA Face Recognition with PaddlePaddle
Test Development Learning Exchange
Test Development Learning Exchange
Aug 21, 2024 · Backend Development

pytest-httpserver Tutorial: Installation and 10 Practical Testing Examples

This article introduces the pytest-httpserver plugin for launching a simple HTTP server during tests, provides installation instructions, and walks through ten practical examples covering GET, POST, headers, query parameters, request counting, error codes, redirects, file uploads, timeouts, and client certificate verification.

HTTP testingMock ServerPython
0 likes · 8 min read
pytest-httpserver Tutorial: Installation and 10 Practical Testing Examples
Python Programming Learning Circle
Python Programming Learning Circle
Aug 20, 2024 · Game Development

Python Turtle Pong Game with AI Paddle

This tutorial walks you through building a fully functional Pong game in Python using the turtle library, featuring an AI paddle that automatically tracks the ball, complete with step‑by‑step code snippets and a complete source listing for easy copy‑paste implementation.

AIGame DevelopmentPong
0 likes · 8 min read
Python Turtle Pong Game with AI Paddle
Python Crawling & Data Mining
Python Crawling & Data Mining
Aug 19, 2024 · Fundamentals

Why My pyecharts Chart Won’t Render in Jupyter and How to Fix It

In this post a Python enthusiast shares a real‑world troubleshooting session where a pyecharts chart fails to display in Jupyter, discusses common causes such as missing git or offline resources, and provides a concrete fix by setting the online host URL via CurrentConfig, along with practical tips for future queries.

JupyterPyechartsPython
0 likes · 5 min read
Why My pyecharts Chart Won’t Render in Jupyter and How to Fix It
JavaEdge
JavaEdge
Aug 17, 2024 · Artificial Intelligence

Exploring LangGraph Studio: A Visual IDE for Building LLM Agents

LangGraph Studio is a new visual IDE that simplifies the development, debugging, and interactive iteration of complex LLM‑based agent applications, offering features such as graph visualization, real‑time state inspection, code‑aware debugging, and seamless integration with LangSmith, with step‑by‑step guidance for desktop users.

AI developmentAgent IDELLM
0 likes · 8 min read
Exploring LangGraph Studio: A Visual IDE for Building LLM Agents
Python Programming Learning Circle
Python Programming Learning Circle
Aug 17, 2024 · Fundamentals

Introduction to Functional Programming in Python

This article introduces functional programming techniques in Python, covering first‑class functions, treating functions as objects, higher‑order functions, lambda expressions, and built‑in utilities like map, filter, and reduce, with clear code examples and explanations of their practical uses.

Functional ProgrammingHigher-Order FunctionsLambda
0 likes · 10 min read
Introduction to Functional Programming in Python
21CTO
21CTO
Aug 17, 2024 · Artificial Intelligence

Understanding Large Language Models: Training, Uses, and a Llama 3 Code Demo

This article explains what large language models (LLMs) are, how they are trained, their diverse applications across industries, the challenges they face, and provides a practical Python example using Replicate to run Meta's Llama 3‑70b‑instruct model.

AILLMLarge Language Model
0 likes · 11 min read
Understanding Large Language Models: Training, Uses, and a Llama 3 Code Demo
AI Large Model Application Practice
AI Large Model Application Practice
Aug 16, 2024 · Artificial Intelligence

How to Query a Microsoft GraphRAG Knowledge Graph with Neo4j: Local and Global Modes

This guide explains how to query a Microsoft GraphRAG knowledge graph using the official CLI, API, and a custom Neo4j implementation, covering both local and global retrieval modes, vector index creation, Cypher query customization, and integration with LangChain for end‑to‑end RAG pipelines.

LangChainMicrosoft GraphRAGNeo4j
0 likes · 13 min read
How to Query a Microsoft GraphRAG Knowledge Graph with Neo4j: Local and Global Modes
Test Development Learning Exchange
Test Development Learning Exchange
Aug 15, 2024 · Backend Development

APScheduler Advanced Features and Configuration Examples

This article provides comprehensive examples of APScheduler's advanced features including database storage, multi-threading/multi-processing, event listeners, dynamic task management, external event triggers, priority settings, logging, advanced triggers, and timezone support.

APSchedulerBackend DevelopmentCron Triggers
0 likes · 6 min read
APScheduler Advanced Features and Configuration Examples
Test Development Learning Exchange
Test Development Learning Exchange
Aug 15, 2024 · Operations

APScheduler Tutorial: Installation, Basic Usage, Triggers, and Advanced Features

This article introduces the Python APScheduler library, covering installation, a basic interval example, various trigger types such as date and cron, parameterized and timezone-aware jobs, retry handling, dynamic job management, SQL job stores, multithreading, parallel execution, external event triggers, priority settings, and how to run the examples.

APSchedulerJob StorePython
0 likes · 10 min read
APScheduler Tutorial: Installation, Basic Usage, Triggers, and Advanced Features
Test Development Learning Exchange
Test Development Learning Exchange
Aug 14, 2024 · Operations

Using Paramiko for SSH Connections, Remote Command Execution, and File Transfer in Python

This tutorial demonstrates how to install Paramiko, establish SSH connections, execute remote commands, upload and download files via SFTP, and close connections, while also covering advanced topics such as key‑based authentication, channel operations, interactive sessions, concurrent commands, jump hosts, proxy commands, and proxy servers.

ParamikoPythonSFTP
0 likes · 10 min read
Using Paramiko for SSH Connections, Remote Command Execution, and File Transfer in Python
Test Development Learning Exchange
Test Development Learning Exchange
Aug 13, 2024 · Operations

Getting Started with Invoke: Installation, Basics, and Common Automation Tasks

This article introduces the Python Invoke library, explains how to install it, demonstrates basic task definitions with @task decorators, and provides practical code examples for automating testing, documentation building, dependency installation, cleaning, packaging, deployment, remote execution, database migration, log analysis, and virtual‑environment creation.

PythonScriptingTask Runner
0 likes · 7 min read
Getting Started with Invoke: Installation, Basics, and Common Automation Tasks
21CTO
21CTO
Aug 13, 2024 · Fundamentals

7 Must‑Know Open‑Source Python Projects Every Developer Should Explore

This article introduces seven noteworthy open‑source Python repositories—including Pandas, Apache Airflow, G4F, Scrapy, Ultroid, Zulip, and Freqtrade—highlighting their key features, typical use cases, and where to find them, offering developers a curated guide to valuable tools for data analysis, workflow automation, web crawling, chat bots, team collaboration, and crypto trading.

Data AnalysisPythonautomation
0 likes · 5 min read
7 Must‑Know Open‑Source Python Projects Every Developer Should Explore
Python Programming Learning Circle
Python Programming Learning Circle
Aug 13, 2024 · Big Data

What’s New in pandas 2.0: Arrow Backend, Copy‑On‑Write, and Performance Improvements

The article reviews pandas 2.0’s major upgrades—including an Apache Arrow backend that speeds up CSV reads by over 30×, new Arrow dtypes, a nullable‑numpy dtype for missing values, a copy‑on‑write memory model, optional dependencies, and benchmark comparisons with ydata‑profiling—highlighting the library’s enhanced performance, flexibility, and interoperability for data‑intensive Python workflows.

Apache ArrowCopy-on-WritePython
0 likes · 15 min read
What’s New in pandas 2.0: Arrow Backend, Copy‑On‑Write, and Performance Improvements
Python Programming Learning Circle
Python Programming Learning Circle
Aug 12, 2024 · Artificial Intelligence

Common Python Libraries for Computer Vision Projects

This article introduces and compares ten widely used Python libraries for computer vision, including Pillow, OpenCV, Mahotas, Scikit‑Image, TensorFlow Image, PyTorch Vision, SimpleCV, Imageio, Albumentations, and timm, highlighting their features, typical use cases, and providing code examples for each.

OpenCVPythonimage processing
0 likes · 10 min read
Common Python Libraries for Computer Vision Projects
Test Development Learning Exchange
Test Development Learning Exchange
Aug 12, 2024 · Fundamentals

Comprehensive Guide to Python unittest Features and Advanced Testing Techniques

This article presents a detailed overview of Python's unittest framework, covering test suites, decorators, parameterized tests, nested tests, dynamic test generation, loaders, exception assertions, subtests, setup/teardown, various assertion methods, test skipping, output capturing, asynchronous testing, and custom assertions, each illustrated with clear code examples.

PythonTest Suitesassertions
0 likes · 10 min read
Comprehensive Guide to Python unittest Features and Advanced Testing Techniques
Python Programming Learning Circle
Python Programming Learning Circle
Aug 10, 2024 · Game Development

Creating a Fireworks Display with Python and Pygame

This article demonstrates how to build a colorful, music‑synchronized fireworks animation in Python using the Pygame library, covering module imports, window setup, color definitions, the Fireworks class implementation, and the main loop that renders and animates the fireworks effect.

AnimationGame DevelopmentGraphics
0 likes · 7 min read
Creating a Fireworks Display with Python and Pygame
Test Development Learning Exchange
Test Development Learning Exchange
Aug 10, 2024 · Fundamentals

Mastering Shallow vs Deep Copy in Python: When and How to Use Them

This guide explains the difference between Python's shallow and deep copy mechanisms, shows the built‑in tools available, and provides ten concrete code examples covering lists, dictionaries, custom objects, tuples, sets and multi‑level nesting to help you choose the right copying strategy for reliable API test automation.

Data StructuresPythonautomation
0 likes · 8 min read
Mastering Shallow vs Deep Copy in Python: When and How to Use Them
21CTO
21CTO
Aug 9, 2024 · Fundamentals

Why Python Is Now the Dominant Language: Insights from the Latest TIOBE Index

The latest TIOBE Index shows Python surpassing 18% for the first time, overtaking Java as the top language, while Java, C++, and emerging contenders like Rust and Kotlin shift positions, offering developers a strategic view of programming language popularity and future trends.

KotlinPythonTIOBE Index
0 likes · 5 min read
Why Python Is Now the Dominant Language: Insights from the Latest TIOBE Index
JavaEdge
JavaEdge
Aug 9, 2024 · Artificial Intelligence

Build a Graph‑Based LLM Agent with LangGraph: Step‑by‑Step Tutorial

This article introduces LangGraph, a Python library for creating stateful, multi‑agent LLM workflows, explains its loop, persistence, and human‑in‑the‑loop features, shows how to install it, and provides a complete code example that builds, runs, and reuses a searchable AI agent with thread‑level state saving.

AILLMLangChain
0 likes · 10 min read
Build a Graph‑Based LLM Agent with LangGraph: Step‑by‑Step Tutorial
AI Large Model Application Practice
AI Large Model Application Practice
Aug 9, 2024 · Artificial Intelligence

How to Build and Index Microsoft GraphRAG with Neo4j: A Step‑by‑Step Guide

This article explains the fundamentals of Microsoft GraphRAG, details its indexing pipeline—including text chunking, entity‑relationship extraction, community detection, and description generation—shows how to set up the graphrag library, create adaptive prompts, build the index, and import the resulting graph into Neo4j for visualization and analysis.

AIGraphRAGNeo4j
0 likes · 13 min read
How to Build and Index Microsoft GraphRAG with Neo4j: A Step‑by‑Step Guide
Baobao Algorithm Notes
Baobao Algorithm Notes
Aug 9, 2024 · Artificial Intelligence

Testing 1M‑Token LLMs with a Novel Medal‑Insertion Benchmark

The article presents a practical method for evaluating 1‑million‑token LLMs by inserting structured medal data into a classic Chinese novel, provides a full Python script for the test, shares results on GLM‑4‑long, and discusses training techniques and open‑source resources for long‑context models.

AILLMPython
0 likes · 10 min read
Testing 1M‑Token LLMs with a Novel Medal‑Insertion Benchmark
Test Development Learning Exchange
Test Development Learning Exchange
Aug 9, 2024 · Fundamentals

Python JSON Handling: Encoding, Decoding, File I/O, Pretty‑Printing, Sorting, Custom Types and Non‑ASCII Support

This tutorial demonstrates how to encode Python objects to JSON strings, decode JSON back to Python, read and write JSON files, pretty‑print and sort JSON output, handle special types with custom encoders, preserve key order, manage non‑ASCII characters, and process binary JSON data using the built‑in json module.

File I/OJSONPretty Print
0 likes · 6 min read
Python JSON Handling: Encoding, Decoding, File I/O, Pretty‑Printing, Sorting, Custom Types and Non‑ASCII Support