Tagged articles

Python

5000 articles · Page 22 of 50
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.

AILLMPrompt Engineering
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
Hacker Afternoon Tea
Hacker Afternoon Tea
Aug 15, 2024 · Artificial Intelligence

Open-Source Binance AI Trading Bot: ML & Feature Engineering for Automated Crypto Signals

This article details an open‑source Binance trading bot that uses machine‑learning models and extensive feature‑engineering pipelines to generate and broadcast automated cryptocurrency buy‑sell signals via a Telegram channel, covering data acquisition, offline training, hyper‑parameter tuning, and live service deployment.

BinancePythoncryptocurrency
0 likes · 18 min read
Open-Source Binance AI Trading Bot: ML & Feature Engineering for Automated Crypto Signals
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.

APSchedulerCronJob Store
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.

PythonTask Runnerinvoke
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.

AutomationData AnalysisLibraries
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-WritePerformance
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.

LibrariesOpenCVPython
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.

AnimationGraphicsPygame
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.

AutomationData StructuresDeep Copy
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.

Data SerializationJSONPretty Print
0 likes · 6 min read
Python JSON Handling: Encoding, Decoding, File I/O, Pretty‑Printing, Sorting, Custom Types and Non‑ASCII Support
Test Development Learning Exchange
Test Development Learning Exchange
Aug 8, 2024 · Fundamentals

Python datetime tutorial: current time, timestamps, date arithmetic, formatting, parsing, range generation, and calendar display

This tutorial demonstrates how to use Python's datetime and calendar modules to obtain the current date and time, convert dates to timestamps, perform date arithmetic, format and parse dates, generate date ranges, compare dates, and display monthly calendars, with clear code examples for each operation.

CodingPythonTime Manipulation
0 likes · 6 min read
Python datetime tutorial: current time, timestamps, date arithmetic, formatting, parsing, range generation, and calendar display
Python Programming Learning Circle
Python Programming Learning Circle
Aug 8, 2024 · Operations

Automating Python Notifications for Model Training, Data Transfer, and Financial Modeling via Email

This article explains how to use Python scripts, the email and smtplib libraries, and MIME components to automatically send progress and completion notifications for long‑running tasks such as model training, data uploads, and financial simulations, including code examples and configuration details.

Data ProcessingNotificationPython
0 likes · 13 min read
Automating Python Notifications for Model Training, Data Transfer, and Financial Modeling via Email
Test Development Learning Exchange
Test Development Learning Exchange
Aug 7, 2024 · Fundamentals

Master Python’s __new__, __init__, and __del__ Magic Methods with Real Code Examples

This article explains how Python’s __new__, __init__, and __del__ magic methods work, shows when to use each, and provides step‑by‑step code examples—including singleton creation, inheritance initialization, resource cleanup, and metaclass usage—to help developers master object lifecycle control.

Object LifecyclePythonTutorial
0 likes · 6 min read
Master Python’s __new__, __init__, and __del__ Magic Methods with Real Code Examples
Python Programming Learning Circle
Python Programming Learning Circle
Aug 7, 2024 · Operations

17 Essential Python Scripts for Automating Everyday Tasks

An extensive guide presents 17 practical Python scripts covering file management, web scraping, email handling, Excel processing, database interaction, system tasks, image editing, network automation, data cleaning, PDF manipulation, GUI automation, testing, cloud services, finance, and natural language processing, enabling readers to streamline workflows and boost productivity.

AutomationDataProcessingPython
0 likes · 24 min read
17 Essential Python Scripts for Automating Everyday Tasks
Python Programming Learning Circle
Python Programming Learning Circle
Aug 7, 2024 · Fundamentals

Python String Indexing and Manipulation Exercises

This article provides a comprehensive set of ten beginner-friendly Python string exercises covering indexing, slicing, step slicing, searching, replacing, concatenation, formatting, membership testing, length calculation, case conversion, and advanced topics like regular expressions, splitting, padding, stripping, digit checking, and practical text‑analysis examples.

PythonSlicingString Manipulation
0 likes · 13 min read
Python String Indexing and Manipulation Exercises
ByteDance Cloud Native
ByteDance Cloud Native
Aug 7, 2024 · Artificial Intelligence

Deploy Stable Diffusion in 5 Minutes with Volcengine’s Continuous Delivery CP

Learn how to quickly launch a Stable Diffusion WebUI service in just five minutes using Volcengine’s cloud‑native continuous delivery platform, which abstracts Kubernetes complexities, provides pre‑configured AI templates, serverless VCI deployment, automatic scaling, API gateway access, and includes a Python client for image generation.

AI DeploymentCloud NativePython
0 likes · 14 min read
Deploy Stable Diffusion in 5 Minutes with Volcengine’s Continuous Delivery CP
Software Development Quality
Software Development Quality
Aug 7, 2024 · Fundamentals

Why Automated Testing Frameworks Are Essential for Faster, Reliable Software Delivery

This article outlines the key benefits of automated testing frameworks, details a step‑by‑step design process, provides a practical Python‑Selenium example, and showcases real‑world applications in e‑commerce, mobile, and financial systems, illustrating how such frameworks accelerate development and improve software quality.

CI/CDPythonautomated testing
0 likes · 8 min read
Why Automated Testing Frameworks Are Essential for Faster, Reliable Software Delivery
Python Programming Learning Circle
Python Programming Learning Circle
Aug 6, 2024 · Fundamentals

Top 10 Python Performance Optimization Techniques

This article presents ten practical Python performance optimization techniques—including using generators, built‑in libraries, local variables, list comprehensions, efficient string joining, reducing loop work, multithreading/multiprocessing, JIT compilation, and profiling—to help developers write faster, more efficient code.

Code EfficiencyPerformance OptimizationPython
0 likes · 6 min read
Top 10 Python Performance Optimization Techniques
Python Crawling & Data Mining
Python Crawling & Data Mining
Aug 6, 2024 · Fundamentals

How to Scrape and Download Novels from Biquw.com Using Python

This guide walks you through extracting novel chapters from the Biquw.com website with Python, explaining how to obtain the book ID, retrieve the chapter list, download each chapter using requests and BeautifulSoup, handle common anti‑scraping measures, and organize the downloaded files.

PythonWeb Scrapingnovel-downloader
0 likes · 6 min read
How to Scrape and Download Novels from Biquw.com Using Python
Python Crawling & Data Mining
Python Crawling & Data Mining
Aug 5, 2024 · Backend Development

How to Build a Python Appointment‑Based Elevator Control System

This article walks through building a Python-based appointment elevator control system, covering platform setup, independent elevator design with detailed class implementations, a task‑oriented group‑control algorithm, and provides complete source code and diagrams for simulation and scheduling.

Backend DevelopmentElevator SimulationPython
0 likes · 10 min read
How to Build a Python Appointment‑Based Elevator Control System
DevOps Operations Practice
DevOps Operations Practice
Aug 4, 2024 · Fundamentals

Five Beginner Python Projects: Number Guessing Game, Calculator, Word Frequency Counter, Ledger, and Simple Chatroom

This article presents five beginner‑friendly Python projects— a number‑guessing game, a calculator, a word‑frequency counter, a simple ledger, and a chatroom—each with background, implementation steps, and complete source code to help new programmers practice core language concepts.

CLINetworkingProgramming Fundamentals
0 likes · 11 min read
Five Beginner Python Projects: Number Guessing Game, Calculator, Word Frequency Counter, Ledger, and Simple Chatroom
Test Development Learning Exchange
Test Development Learning Exchange
Aug 2, 2024 · Fundamentals

Automating Image Watermarking with Python and Pillow

This article introduces the importance of image watermarking for copyright protection and provides a step‑by‑step Python tutorial using the Pillow library, covering installation, basic usage, a script for batch watermarking, and advanced techniques such as dynamic watermarks and automated folder monitoring.

PythonWatermarkimage processing
0 likes · 4 min read
Automating Image Watermarking with Python and Pillow
Python Programming Learning Circle
Python Programming Learning Circle
Aug 1, 2024 · Fundamentals

Comprehensive Guide to Python File Operations, CSV, JSON, and Pickle

This article provides a thorough overview of Python file handling, covering opening and closing files, absolute and relative paths, various file modes, reading and writing techniques, pointer manipulation, file copying, CSV I/O, in‑memory streams with StringIO/BytesIO, and serialization/deserialization using JSON and pickle modules.

PythonStringIOfile I/O
0 likes · 17 min read
Comprehensive Guide to Python File Operations, CSV, JSON, and Pickle
Python Programming Learning Circle
Python Programming Learning Circle
Jul 31, 2024 · Fundamentals

Using Python's os Module to Delete Duplicate Files

This article demonstrates a simple Python method for identifying and removing duplicate files by leveraging the built‑in os module, explaining how to list directory contents, construct file paths, and use os.remove() to delete unwanted copies, complete with example code and usage notes.

AutomationOS modulePython
0 likes · 4 min read
Using Python's os Module to Delete Duplicate Files
Test Development Learning Exchange
Test Development Learning Exchange
Jul 31, 2024 · Fundamentals

Introduction to Variable Scope in Python

This article explains Python's four variable scope types—local, enclosing, global, and built‑in—through clear descriptions and runnable code examples that illustrate how each scope affects variable accessibility and program behavior.

Programming FundamentalsPythonVariable Scope
0 likes · 4 min read
Introduction to Variable Scope in Python
Python Programming Learning Circle
Python Programming Learning Circle
Jul 30, 2024 · Fundamentals

Comprehensive Guide to Essential NumPy Functions for Array Creation, Manipulation, and Analysis

This tutorial presents a detailed overview of over fifty core NumPy functions, covering array creation, reshaping, arithmetic, statistical analysis, set operations, splitting, stacking, printing, and data persistence, with clear explanations and complete code examples for each operation.

ArrayOperationsDataScienceMachineLearning
0 likes · 29 min read
Comprehensive Guide to Essential NumPy Functions for Array Creation, Manipulation, and Analysis
Satori Komeiji's Programming Classroom
Satori Komeiji's Programming Classroom
Jul 30, 2024 · Fundamentals

Inside Python’s List: C‑Level Implementations of Core Methods

This article walks through the CPython source code that defines list’s built‑in methods—append, insert, pop, index, count, remove, reverse, clear, and copy—explaining how each method is wired into the type object, the underlying C logic, time‑complexity characteristics, and common pitfalls such as reference‑count handling and shallow versus deep copying.

Data StructuresDeep CopyList
0 likes · 28 min read
Inside Python’s List: C‑Level Implementations of Core Methods
Efficient Ops
Efficient Ops
Jul 29, 2024 · Operations

Top 19 Essential Linux & Sysadmin Interview Questions with Answers

This article compiles 19 practical Linux, security, networking, and Python interview questions covering command‑line techniques, system monitoring, load‑balancing, HTTP protocols, common vulnerabilities, TCP handshakes, TIME_WAIT optimization, and code snippets to help candidates prepare for sysadmin roles.

LinuxPythonSecurity
0 likes · 15 min read
Top 19 Essential Linux & Sysadmin Interview Questions with Answers
Python Programming Learning Circle
Python Programming Learning Circle
Jul 29, 2024 · Fundamentals

15 Essential Python Packages You Should Know

This article introduces fifteen of the most useful Python libraries—including Dash, Pygame, Pillow, Requests, and BeautifulSoup—explaining their core features and typical use cases, making it a concise guide for developers seeking to expand their Python toolkit.

AutomationDataScienceLibraries
0 likes · 10 min read
15 Essential Python Packages You Should Know
Test Development Learning Exchange
Test Development Learning Exchange
Jul 29, 2024 · Fundamentals

Leveraging Python dataclasses and typing for clean, type‑safe data models

This article explains how Python's dataclasses module, combined with the typing library, can automatically generate boilerplate methods, provide rich type annotations, support optional and union types, enable dictionary serialization, perform runtime checks, and be extended with field metadata for robust, maintainable code.

Code ExamplesPythondataclasses
0 likes · 6 min read
Leveraging Python dataclasses and typing for clean, type‑safe data models
Full-Stack DevOps & Kubernetes
Full-Stack DevOps & Kubernetes
Jul 29, 2024 · Artificial Intelligence

How to Run Real‑Time Voice Cloning with Python: A Step‑by‑Step Guide

This guide introduces the open‑source Realtime Voice Cloning project, explains its key features, and provides detailed installation and usage instructions—including environment setup, dependency installation, cloning the repository, and running the demo tool—to enable real‑time voice transformation with Python.

AIPythonSpeech Synthesis
0 likes · 5 min read
How to Run Real‑Time Voice Cloning with Python: A Step‑by‑Step Guide
Python Programming Learning Circle
Python Programming Learning Circle
Jul 27, 2024 · Artificial Intelligence

Numpy‑ML: A Pure NumPy Implementation of Machine Learning Algorithms

The Numpy‑ML project, created by UC Berkeley’s David Bourgin, provides a comprehensive pure‑NumPy implementation of over 30 machine‑learning algorithms—including probabilistic models, neural‑network layers, optimizers, and reinforcement‑learning agents—along with extensive data‑preprocessing utilities, all in a single open‑source repository.

AIAlgorithmsNumPy
0 likes · 6 min read
Numpy‑ML: A Pure NumPy Implementation of Machine Learning Algorithms
Python Programming Learning Circle
Python Programming Learning Circle
Jul 25, 2024 · Artificial Intelligence

Skin Color Detection Using OpenCV in Python

This article explains how to implement human skin color detection in Python with OpenCV, covering library installation, basic image operations, and three algorithms based on YCrCb and HSV color spaces, including code examples, parameter choices, and visual results.

OpenCVPythoncolor space
0 likes · 9 min read
Skin Color Detection Using OpenCV in Python
MaGe Linux Operations
MaGe Linux Operations
Jul 25, 2024 · Fundamentals

Unlock Python Multithreading: A Complete Guide to Threads, Locks, and Queues

This article provides a comprehensive overview of Python multithreading, covering basic concepts, the _thread and threading modules, thread creation methods, synchronization primitives like Lock and RLock, thread-local storage, thread pools, and the differences between multithreading and multiprocessing for both CPU‑bound and I/O‑bound workloads.

LockPythonQueue
0 likes · 24 min read
Unlock Python Multithreading: A Complete Guide to Threads, Locks, and Queues
Test Development Learning Exchange
Test Development Learning Exchange
Jul 24, 2024 · Fundamentals

Understanding the Walrus Operator (:=) in Python 3.8

Python 3.8 introduced the walrus operator (:=), a concise assignment expression that allows in-line variable assignment within expressions, and this article explains its purpose, benefits, and provides ten practical code examples illustrating its use in loops, comprehensions, conditionals, and function calls.

PythonPython 3.8assignment expression
0 likes · 5 min read
Understanding the Walrus Operator (:=) in Python 3.8
Python Programming Learning Circle
Python Programming Learning Circle
Jul 24, 2024 · Fundamentals

A Comprehensive Guide to Popular Python IDEs and Editors

This article reviews a wide range of Python IDEs and code editors—including PyCharm, VS Code, Sublime Text, Vim, Emacs, IDLE, and many others—detailing their features, compatibility, advantages, disadvantages, and download links to help developers choose the most suitable environment for their needs.

PythonTooldevelopment
0 likes · 12 min read
A Comprehensive Guide to Popular Python IDEs and Editors
Model Perspective
Model Perspective
Jul 23, 2024 · Artificial Intelligence

Building Your Own AI Agent with LangChain: A Hands‑On Guide

This article walks through the author’s experience creating a custom AI agent using LangChain and OpenAI APIs, explains the concepts of AI agents and the ReAct reasoning framework, provides step‑by‑step code, discusses required libraries and APIs, and shares practical tips and challenges encountered.

AI AgentLLMLangChain
0 likes · 16 min read
Building Your Own AI Agent with LangChain: A Hands‑On Guide
Test Development Learning Exchange
Test Development Learning Exchange
Jul 22, 2024 · Backend Development

Python API Testing Examples Using requests, unittest, pytest, and jsonschema

This article provides a series of Python code examples demonstrating how to perform API automation testing tasks—including GET and POST requests, authentication, file uploads, redirects, unit testing with unittest and pytest, response mocking with responses, and response schema validation with jsonschema—offering practical guidance for backend testing.

API-testingPythonjsonschema
0 likes · 6 min read
Python API Testing Examples Using requests, unittest, pytest, and jsonschema
Test Development Learning Exchange
Test Development Learning Exchange
Jul 21, 2024 · Fundamentals

10 Python Regular Expression Examples and How to Use Them

This article introduces Python's re module and demonstrates ten practical regular‑expression examples—including basic matching, email extraction, finding multiple patterns, substitution, anchoring, wildcard matching, grouping, repetition, non‑greedy matching, and look‑behind—complete with code snippets and expected outputs.

Pythonre moduleregular expressions
0 likes · 7 min read
10 Python Regular Expression Examples and How to Use Them
Test Development Learning Exchange
Test Development Learning Exchange
Jul 21, 2024 · Fundamentals

Python Keywords: 10 Example Code Snippets

This article introduces Python's essential keywords, explaining their purpose and demonstrating ten practical code examples that cover conditional statements, loops, functions, classes, exception handling, file management, module imports, return values, infinite loops with break, and extended conditional branches.

Pythonfundamentalskeywords
0 likes · 5 min read
Python Keywords: 10 Example Code Snippets
Full-Stack Cultivation Path
Full-Stack Cultivation Path
Jul 20, 2024 · Artificial Intelligence

Beyond RAG: How Mem0 Gives Large Language Models Super Memory for Personalized AI Apps

Mem0 is an open‑source memory‑management middleware for large language models that provides dynamic, context‑aware, and adaptive memory, outperforming traditional Retrieval‑Augmented Generation (RAG) and enabling personalized AI assistants, travel planners, and support agents with concrete Python APIs and examples.

AI-agentsLLMMem0
0 likes · 9 min read
Beyond RAG: How Mem0 Gives Large Language Models Super Memory for Personalized AI Apps
Model Perspective
Model Perspective
Jul 19, 2024 · Artificial Intelligence

Can Bayesian Networks Predict Public Opinion Reversals? A Practical Guide

This article explains how Bayesian Network models can be built and applied to forecast public opinion reversals, detailing the network structure, joint probability distribution, inference methods, and a Python implementation using pgmpy with sample data and analysis of key influencing factors.

Bayesian networkPythonpgmpy
0 likes · 10 min read
Can Bayesian Networks Predict Public Opinion Reversals? A Practical Guide
Test Development Learning Exchange
Test Development Learning Exchange
Jul 18, 2024 · Fundamentals

Using functools.partial in Python: Ten Practical Examples

This article introduces Python's functools.partial, explaining how fixing certain function arguments creates new callable functions, and demonstrates ten practical examples ranging from mathematical calculations and file handling to HTTP request wrapping, decorator parameterization, multiprocessing, GUI event binding, logging, data validation, and configuration parsing.

Pythoncode reusefunctools
0 likes · 7 min read
Using functools.partial in Python: Ten Practical Examples
Python Programming Learning Circle
Python Programming Learning Circle
Jul 18, 2024 · Fundamentals

Guide to Using Python's eval() Function

This article provides a comprehensive guide to Python's eval() function, covering its syntax, parameters, execution process, differences between globals and locals, dynamic versus static execution, common use cases, security risks, and alternatives such as ast.literal_eval() and exec().

EvalPythonSecurity
0 likes · 15 min read
Guide to Using Python's eval() Function
Baidu Geek Talk
Baidu Geek Talk
Jul 17, 2024 · Artificial Intelligence

Tensor Indexing in PaddlePaddle: Concepts, Operations, and Practical Examples

This article explains PaddlePaddle tensor indexing, covering basic slicing, integer and boolean advanced indexing, ellipsis and newaxis usage, assignment in dynamic and static graphs, automatic gradient propagation, and demonstrates practical applications such as semantic segmentation, object detection, and NLP sequence masking.

Advanced IndexingData ProcessingGradient Propagation
0 likes · 25 min read
Tensor Indexing in PaddlePaddle: Concepts, Operations, and Practical Examples
Python Programming Learning Circle
Python Programming Learning Circle
Jul 17, 2024 · Fundamentals

Seven Essential Python Efficiency Tools for Developers

This article introduces seven powerful Python libraries—Pandas, Selenium, Flask, Scrapy, Requests, Faker, and Pillow—explaining their core features, typical use cases, and providing ready‑to‑run code snippets to help developers boost productivity and automate routine tasks.

AutomationData AnalysisLibraries
0 likes · 6 min read
Seven Essential Python Efficiency Tools for Developers