Tagged articles

Python

5000 articles · Page 38 of 50
21CTO
21CTO
Jun 1, 2022 · Fundamentals

How Python 3.11 Boosts Speed by Up to 60% – The Secrets Behind Faster CPython

Python 3.11, slated for release in October 2022, delivers a 10‑60% performance boost over 3.10 thanks to the Microsoft‑backed Faster CPython project, which introduces adaptive specialization, memory‑allocator refinements, and several low‑level optimizations that trade a modest memory increase for faster execution.

CPythonInterpreter OptimizationPEP 659
0 likes · 5 min read
How Python 3.11 Boosts Speed by Up to 60% – The Secrets Behind Faster CPython
Big Data Technology Architecture
Big Data Technology Architecture
May 31, 2022 · Big Data

Comprehensive Guide to Installing and Using Apache Airflow with Docker on Windows

This article provides a detailed tutorial on Apache Airflow fundamentals, Docker-based installation on Windows, Dockerfile creation, container deployment via Docker run and Docker Compose, Airflow configuration, and practical usage of DAGs, tasks, connections, and UI features for data pipeline orchestration.

Apache AirflowDockerDocker Compose
0 likes · 14 min read
Comprehensive Guide to Installing and Using Apache Airflow with Docker on Windows
Python Programming Learning Circle
Python Programming Learning Circle
May 29, 2022 · Artificial Intelligence

Generating Anime‑Style Avatars with Alibaba Cloud Vision AI Using Python

This tutorial explains how to create unique, anime‑style avatars from personal photos by leveraging Alibaba Cloud's Vision AI service, covering account setup, AccessKey creation, required SDK installations, Python code for configuring the client, sending requests, and retrieving the generated image URLs.

AI AvatarAlibaba CloudAnime Style
0 likes · 5 min read
Generating Anime‑Style Avatars with Alibaba Cloud Vision AI Using Python
FunTester
FunTester
May 29, 2022 · Fundamentals

How to Download and Visualize Kweichow Moutai Stock Data with Python

This guide shows how to download historical Kweichow Moutai stock data from NetEase Finance as a CSV file, handle encoding issues, and use Python's pandas and matplotlib libraries to filter the data and create both volume and OHLC line charts for a selected month.

CSVData VisualizationPython
0 likes · 6 min read
How to Download and Visualize Kweichow Moutai Stock Data with Python
Model Perspective
Model Perspective
May 28, 2022 · Fundamentals

Master Python Control Flow: If, Loops, and List Comprehensions Explained

Learn Python's fundamental control flow constructs—including if, if‑else, elif‑else, for and while loops, continue, break, range, and list comprehensions—through clear explanations and interactive code examples that demonstrate condition evaluation, iteration, and common patterns for managing program logic.

LoopsPythoncontrol flow
0 likes · 7 min read
Master Python Control Flow: If, Loops, and List Comprehensions Explained
Model Perspective
Model Perspective
May 28, 2022 · Fundamentals

Master Python Built-in Functions and Custom Function Basics

This article introduces Python's built-in functions such as type, len, sum, round, and sorted, explains data type conversion utilities, demonstrates numeric conversions, and provides a step‑by‑step guide to defining and using custom functions with default arguments.

Custom FunctionsPythonbuilt-in functions
0 likes · 5 min read
Master Python Built-in Functions and Custom Function Basics
Python Programming Learning Circle
Python Programming Learning Circle
May 28, 2022 · Information Security

Bypassing HCaptcha Using YesCaptcha Service with Python

This article explains how to bypass HCaptcha verification by leveraging the YesCaptcha service, detailing the required API parameters, Python code for extracting captcha images via Selenium, converting them to Base64, creating a solving task, and handling the solution to automate the verification process.

HCaptchaPythonYesCaptcha
0 likes · 7 min read
Bypassing HCaptcha Using YesCaptcha Service with Python
Code DAO
Code DAO
May 28, 2022 · Artificial Intelligence

How to Build an Image Duplicate Detection System

This article explains how to construct an image duplicate and near‑duplicate detection system, compares five similarity methods (Euclidean distance, SSIM, image hashing, cosine similarity, and CNN‑based feature similarity), provides Python implementations, evaluates them on two datasets, and discusses speed, accuracy, and robustness results.

CNNEfficientNetPython
0 likes · 18 min read
How to Build an Image Duplicate Detection System
SQB Blog
SQB Blog
May 28, 2022 · Backend Development

Scaling Automated API Testing for Millions of Microservices

This article outlines the background, testing strategy, and practical implementation of automated API testing within a large-scale microservice environment, detailing the shift from traditional test pyramids to a honeycomb model, technology choices, test case design, mock servers, platform management, and measures to prevent test suite decay.

API-testingPythonautomated testing
0 likes · 18 min read
Scaling Automated API Testing for Millions of Microservices
Code DAO
Code DAO
May 27, 2022 · Artificial Intelligence

Building an Image Classification Model with CNNs

This article explains how to train a convolutional neural network on a remote GPU for image classification, covering convolution, padding, activation, pooling, dropout, flattening, fully‑connected layers, dataset preparation, model definition, training, and prediction using TensorFlow/Keras.

CNNFood-101GPU training
0 likes · 13 min read
Building an Image Classification Model with CNNs
21CTO
21CTO
May 26, 2022 · Information Security

How a Malicious PyPI Package Stole Secrets and What It Means for PyPI Security

Recent investigations reveal that the malicious PyPI package “ctx” harvested environment variables, encoded them in base64, and sent them to a Heroku endpoint, while attackers also hijacked the package’s maintainer account via domain takeover, highlighting serious vulnerabilities in PyPI’s package and account security processes.

Domain HijackingMalwarePyPI
0 likes · 5 min read
How a Malicious PyPI Package Stole Secrets and What It Means for PyPI Security
Python Programming Learning Circle
Python Programming Learning Circle
May 24, 2022 · Fundamentals

Creating ASCII Art from Images with Python and Pillow

This tutorial demonstrates how to transform a picture into ASCII art using roughly 50 lines of Python code with the Pillow library, covering image scaling, grayscale conversion, character mapping, and saving the result as a text file while noting environment-specific display considerations.

ASCII artPython
0 likes · 6 min read
Creating ASCII Art from Images with Python and Pillow
Python Programming Learning Circle
Python Programming Learning Circle
May 23, 2022 · Backend Development

Simulating Zhihu Login with Python Using urllib and Fiddler

This article demonstrates how to automate Zhihu login on Windows by analyzing network traffic with Fiddler, extracting required parameters, and implementing a Python script that builds HTTP requests using urllib2, handles cookies, captcha retrieval, and logs the results, complete with sample code and execution screenshots.

FiddlerHTTPLogin Automation
0 likes · 8 min read
Simulating Zhihu Login with Python Using urllib and Fiddler
Python Programming Learning Circle
Python Programming Learning Circle
May 23, 2022 · Fundamentals

Python Project Practice Series: Instant Tagging, PDF Generation, XML Site Builder, and News Aggregator

This article introduces Python's readability and popularity, then walks through four practical projects—an instant‑tagging tool, a PDF creator using urllib and reportlab, an XML‑driven website generator, and a news‑aggregation utility—explaining their architecture, key modules, and code snippets.

Code TutorialProjectPython
0 likes · 10 min read
Python Project Practice Series: Instant Tagging, PDF Generation, XML Site Builder, and News Aggregator
Python Programming Learning Circle
Python Programming Learning Circle
May 20, 2022 · Fundamentals

Introduction to Functional Programming in Python

This article introduces Python's functional programming features, covering first‑class functions, callable objects, storing functions in data structures, higher‑order functions, nested functions, lambda expressions, and the use of map, filter, and reduce with clear code examples.

Functional ProgrammingPythonfilter
0 likes · 9 min read
Introduction to Functional Programming in Python
Model Perspective
Model Perspective
May 19, 2022 · Operations

How to Optimize Fire Station Placement Using Facility Location Models

This article introduces the facility location problem, outlines its key concepts, elements, and objective functions, and demonstrates a practical fire‑station placement case study solved with the Python Pulp library to minimize the number of stations while ensuring response times under 15 minutes.

OptimizationPythonfacility location
0 likes · 7 min read
How to Optimize Fire Station Placement Using Facility Location Models
Python Programming Learning Circle
Python Programming Learning Circle
May 18, 2022 · Backend Development

Microsoft Splits VS Code Python Extension into Black, isort, and Jupyter Powertoys Extensions

Microsoft has recently divided its VS Code Python extension, releasing three independent extensions—Black for code formatting, isort for import sorting, and Jupyter Powertoys for experimental notebook features—each offering LSP‑based support, version checks, and marketplace installation for Python developers.

BlackExtensionJupyter
0 likes · 5 min read
Microsoft Splits VS Code Python Extension into Black, isort, and Jupyter Powertoys Extensions
Python Programming Learning Circle
Python Programming Learning Circle
May 17, 2022 · Fundamentals

Python Basics: Indexing, Slicing, String Alignment, List Comprehensions, Variable Arguments, and NumPy Linear Algebra

This article introduces essential Python techniques—including list indexing and slicing, string alignment methods, list and dictionary comprehensions, handling variable-length arguments, and using NumPy for linear‑algebra operations—providing clear code examples and explanations for each concept.

NumPyPythonSlicing
0 likes · 8 min read
Python Basics: Indexing, Slicing, String Alignment, List Comprehensions, Variable Arguments, and NumPy Linear Algebra
Code DAO
Code DAO
May 17, 2022 · Fundamentals

Eight Python Libraries for Mesh, Point Cloud, and Data Visualization – Part 1

This article introduces eight Python libraries—Open3D, Trimesh, PyVista, Vedo, Pyrender, PlotOptiX, Polyscope, and Simple‑3dviz—detailing their installation, core APIs, and step‑by‑step code examples for visualizing meshes, point clouds, and multidimensional data.

3D VisualizationPythonmesh
0 likes · 41 min read
Eight Python Libraries for Mesh, Point Cloud, and Data Visualization – Part 1
Code DAO
Code DAO
May 16, 2022 · Artificial Intelligence

How to Build a Simple Neural Network from Scratch with NumPy

This article walks through implementing a basic multi‑layer neural network using only NumPy, covering terminology, network architecture, forward and backward propagation, activation functions, loss calculation, parameter updates with SGD, and compares the custom model with a Keras implementation.

BackpropagationCross-EntropyNeural Network
0 likes · 17 min read
How to Build a Simple Neural Network from Scratch with NumPy
MaGe Linux Operations
MaGe Linux Operations
May 15, 2022 · Backend Development

Top 37 Python Web Frameworks: Features, Pros & Cons Explained

After two weeks of research, this guide presents a ranked list of 37 Python web frameworks—detailing their official sites, strengths, weaknesses, and visual overviews—to help developers choose the most supported and suitable framework for their projects.

Backend DevelopmentDjangoFastAPI
0 likes · 27 min read
Top 37 Python Web Frameworks: Features, Pros & Cons Explained
Programmer DD
Programmer DD
May 15, 2022 · Backend Development

How to Automate Gym Reservations with Selenium: A Google Engineer’s Design Doc

This article explains how a Google engineer designed and implemented an automated system using Python and Selenium to book gym slots two days in advance, detailing problem definition, requirements, architecture, code snippets, and operational workflow for reliable, headless execution on macOS.

PythonWeb Scrapingautomation
0 likes · 11 min read
How to Automate Gym Reservations with Selenium: A Google Engineer’s Design Doc
Hacker Afternoon Tea
Hacker Afternoon Tea
May 12, 2022 · Backend Development

How to Enable Distributed Multi‑Tenant PostgreSQL (Citus) in a Python/Django App

This guide walks through migrating a single‑node Django multi‑tenant application to a distributed PostgreSQL backend using Citus, covering schema changes, primary‑key and unique‑constraint adjustments, integration of the django‑multitenant library, data distribution, range‑query updates, and middleware automation.

CitusDjangoPostgreSQL
0 likes · 14 min read
How to Enable Distributed Multi‑Tenant PostgreSQL (Citus) in a Python/Django App
MaGe Linux Operations
MaGe Linux Operations
May 12, 2022 · Backend Development

7 Fun Python Projects You Can Build in Minutes

This article shares seven practical Python scripts—ranging from a 30‑line Zhihu image scraper and chatbot conversation loop to poetry author classification, lottery number generation, automatic apology letter creation, screen‑capture automation, and GIF assembly—demonstrating how to avoid reinventing the wheel while learning useful automation techniques.

Lottery GeneratorPoetry ClassificationPython
0 likes · 8 min read
7 Fun Python Projects You Can Build in Minutes
Python Programming Learning Circle
Python Programming Learning Circle
May 12, 2022 · Frontend Development

Introducing PyScript: Run Python Directly in the Browser

PyScript, a new framework from Anaconda, enables developers to embed and run Python code directly in standard HTML pages, offering first‑class Python support in the browser, seamless integration with JavaScript, package management, and UI components, all built on the Pyodide WebAssembly engine.

PyScriptPythonWebAssembly
0 likes · 4 min read
Introducing PyScript: Run Python Directly in the Browser
MaGe Linux Operations
MaGe Linux Operations
May 11, 2022 · Fundamentals

10 Essential pip Tricks Every Python Developer Should Know

This guide presents ten practical pip tips for Python developers, covering installation, upgrades, package installation, batch requirements, uninstallation, dependency freezing, information lookup, upgrade checks, compatibility verification, and local downloading, each illustrated with clear commands and examples.

PythonTutorialpackage management
0 likes · 10 min read
10 Essential pip Tricks Every Python Developer Should Know
Python Programming Learning Circle
Python Programming Learning Circle
May 11, 2022 · Frontend Development

Comprehensive Guide to Configuring Chrome DevTools for Python Web Scraping

This article provides a detailed walkthrough of Chrome DevTools configuration and usage—including global settings, shortcuts, element inspection, network throttling, and code extraction—to help Python developers efficiently collect web data, with step‑by‑step instructions, screenshots, and code snippets.

Chrome DevToolsPythonWeb Scraping
0 likes · 9 min read
Comprehensive Guide to Configuring Chrome DevTools for Python Web Scraping
Architecture Digest
Architecture Digest
May 6, 2022 · Fundamentals

Understanding Port Listening with Python Socket Examples

This article uses a conversational story to explain what it means to listen on a network port, covering TCP vs UDP, binding to specific IPs, reuse‑port options, IPv4 and IPv6 differences, and demonstrates the concepts with multiple Python socket code snippets.

IPv4IPv6Python
0 likes · 13 min read
Understanding Port Listening with Python Socket Examples
MaGe Linux Operations
MaGe Linux Operations
May 5, 2022 · Fundamentals

Master Python’s with Statement: Simplify Resource Management

This article explains the purpose and mechanics of Python's with statement, showing how it leverages context managers to replace verbose try‑finally blocks, and demonstrates both class‑based and decorator‑based implementations with clear code examples.

Code ExampleDecoratorPython
0 likes · 6 min read
Master Python’s with Statement: Simplify Resource Management
Code DAO
Code DAO
May 5, 2022 · Artificial Intelligence

Optimizing Machine Learning Models for Edge Devices with TensorFlow Lite

This article explains how to convert a TensorFlow image‑classification model to TensorFlow Lite, apply different quantization techniques, benchmark the resulting models on a Raspberry Pi 4, and compare latency, size, and accuracy to demonstrate the trade‑offs of edge AI deployment.

Edge AIEfficientNetModel Quantization
0 likes · 16 min read
Optimizing Machine Learning Models for Edge Devices with TensorFlow Lite
Python Programming Learning Circle
Python Programming Learning Circle
May 4, 2022 · Fundamentals

Comprehensive Guide to NumPy Array Operations and Functions

This article provides a detailed tutorial on NumPy array manipulation in Python, covering iteration with np.nditer, reshaping, flattening, transposition, axis swapping, broadcasting, stacking, concatenation, splitting, resizing, appending, inserting, deleting, unique element extraction, string utilities, arithmetic, statistical analysis, sorting, searching, and file I/O, each illustrated with concise code examples.

Data ProcessingNumPyPython
0 likes · 21 min read
Comprehensive Guide to NumPy Array Operations and Functions
Python Crawling & Data Mining
Python Crawling & Data Mining
May 2, 2022 · Backend Development

Master Python ctypes: Call Windows DLLs and APIs with Ease

This comprehensive guide explains how Python can interface with C dynamic libraries using ctypes, covering installation, data types, pointer manipulation, buffer creation, DLL loading methods, Windows API calls, and advanced techniques such as structures, unions, arrays, and process control.

BackendC integrationPython
0 likes · 16 min read
Master Python ctypes: Call Windows DLLs and APIs with Ease
Python Programming Learning Circle
Python Programming Learning Circle
Apr 30, 2022 · Fundamentals

10 Essential Python Tips to Write Better Code

This article presents ten practical Python techniques—including link operators, large number formatting, inline conditionals, list comprehensions, f‑strings, enumerate, argument unpacking, multiple return values, one‑liners, and commenting—to help developers write cleaner, more efficient, and more readable code.

Pythoncode optimizationprogramming tips
0 likes · 7 min read
10 Essential Python Tips to Write Better Code
MaGe Linux Operations
MaGe Linux Operations
Apr 29, 2022 · Fundamentals

Discover 5 Hidden Python Modules That Can Supercharge Your Code

This article introduces five lesser‑known Python standard‑library modules—difflib, sched, binascii, tty, and weakref—explaining their key functions, typical use cases, and providing concise code examples so developers can quickly incorporate these powerful tools into their projects.

ModulesPythonbinascii
0 likes · 9 min read
Discover 5 Hidden Python Modules That Can Supercharge Your Code
Python Programming Learning Circle
Python Programming Learning Circle
Apr 26, 2022 · Artificial Intelligence

Python Script for Adding Face Masks to CelebA Images Using the face_recognition Library

This article demonstrates how to use Python, the face_recognition library, and OpenCV/Pillow to automatically detect facial landmarks in CelebA images, generate and align mask overlays, and save both masked and binary mask versions for computer‑vision research and dataset augmentation.

Pythoncomputer visionface_recognition
0 likes · 11 min read
Python Script for Adding Face Masks to CelebA Images Using the face_recognition Library
Code DAO
Code DAO
Apr 26, 2022 · Artificial Intelligence

Building an Open-Source ML Pipeline – Part 1: Data Ingestion & Storage

This article walks through building the first stage of an open‑source MLOps pipeline—data ingestion and storage—by outlining requirements, selecting tools such as Argo Workflows, Minio and Great Expectations, showing how to set up a minikube cluster, and providing Python scripts and an Argo CronWorkflow to extract, transform, and load OpenAQ air‑quality data into Minio.

Argo WorkflowsKubernetesMLOps
0 likes · 10 min read
Building an Open-Source ML Pipeline – Part 1: Data Ingestion & Storage
IT Services Circle
IT Services Circle
Apr 25, 2022 · Backend Development

Batch Shortening and Expanding URLs with Python

This article explains how to use Python to convert hundreds of long URLs into short ones and later restore them, covering the rationale for short links, free and paid service options, and providing complete code examples for both shortening and expanding URLs.

APIBackendPython
0 likes · 5 min read
Batch Shortening and Expanding URLs with Python
Python Programming Learning Circle
Python Programming Learning Circle
Apr 25, 2022 · Fundamentals

Understanding Python Lambda Expressions: Syntax, Examples, and Use Cases

Python's lambda expressions provide a concise way to create anonymous functions, and this guide explains their syntax, demonstrates simple to complex examples—including arithmetic, conditional logic, and sorting—and compares them with traditional functions and built‑in utilities like filter and list comprehensions.

Code ExampleFunctional ProgrammingPython
0 likes · 5 min read
Understanding Python Lambda Expressions: Syntax, Examples, and Use Cases
MaGe Linux Operations
MaGe Linux Operations
Apr 23, 2022 · Information Security

What Are the Most Common Python Vulnerabilities and How to Fix Them?

Python, a widely used high‑level language, suffers from several critical vulnerabilities—including command injection, outdated versions, insecure temporary files, misuse of assert statements, and import path issues—each explained with practical mitigation strategies to help developers secure their applications.

PythonVulnerabilitiesassert statements
0 likes · 7 min read
What Are the Most Common Python Vulnerabilities and How to Fix Them?
Code DAO
Code DAO
Apr 23, 2022 · Fundamentals

Visualizing Invisible SO₂ After the Tonga Eruption with NASA Data and Python

This tutorial shows how to download NASA GES DISC SO₂ data for the 2022 Hunga Tonga–Hunga Ha'apai eruption, extract relevant fields with H5py, build a Pandas DataFrame, and create both scatter‑plot and time‑varying heat‑map visualizations using Matplotlib, Seaborn and Folium.

Data VisualizationFoliumH5py
0 likes · 14 min read
Visualizing Invisible SO₂ After the Tonga Eruption with NASA Data and Python
Python Programming Learning Circle
Python Programming Learning Circle
Apr 22, 2022 · Fundamentals

Understanding Python List Comprehensions: Advantages, Usage, and Performance Comparison

This article explains how Python list comprehensions provide a concise, memory‑efficient way to create lists, compares them with loops and map(), shows advanced features like conditional logic, nested comprehensions, set and dictionary comprehensions, and discusses when to avoid them for better readability and performance.

Conditional LogicPerformancePython
0 likes · 14 min read
Understanding Python List Comprehensions: Advantages, Usage, and Performance Comparison
Python Programming Learning Circle
Python Programming Learning Circle
Apr 21, 2022 · Fundamentals

Understanding Python list.pop() Method with Examples

This article explains Python's list.pop() method, covering its syntax, optional index parameter, error handling, return value, and provides multiple code examples demonstrating removal by specific, default, and negative indices, along with outputs and a brief note on alternative deletion methods.

Code ExamplesListPython
0 likes · 4 min read
Understanding Python list.pop() Method with Examples
MaGe Linux Operations
MaGe Linux Operations
Apr 20, 2022 · Fundamentals

Master Python List Comprehensions: When to Use Them and Why They Shine

This article explores Python's versatile list comprehension feature, comparing it with traditional loops and map() calls, demonstrating syntax, performance benchmarks, advanced usages like conditional logic, set and dictionary comprehensions, nested structures, and guidelines on when to prefer or avoid comprehensions for clear, efficient code.

CodingPythonTutorial
0 likes · 16 min read
Master Python List Comprehensions: When to Use Them and Why They Shine
Python Programming Learning Circle
Python Programming Learning Circle
Apr 19, 2022 · Artificial Intelligence

Step‑by‑Step Guide to Building Machine Learning Models with Scikit‑learn Templates

This article introduces a practical, step‑by‑step tutorial on building machine learning models with scikit‑learn, covering problem types, dataset loading, splitting, and a series of reusable templates (V1.0, V2.0, V3.0) for classification, regression, clustering, cross‑validation, and hyper‑parameter tuning, complete with code examples.

ClassificationPythoncross-validation
0 likes · 17 min read
Step‑by‑Step Guide to Building Machine Learning Models with Scikit‑learn Templates
Python Programming Learning Circle
Python Programming Learning Circle
Apr 15, 2022 · Fundamentals

Why Python Struggles with Large Projects: Variable Declarations, Module Management, Dependencies, and Concurrency

The article examines the challenges of using Python for large-scale projects, highlighting issues such as implicit variable declarations, complex module dependencies, version conflicts, the Global Interpreter Lock, and concurrency limitations, while comparing Python to languages like C, Go, and Java.

GILLanguage comparisonModules
0 likes · 13 min read
Why Python Struggles with Large Projects: Variable Declarations, Module Management, Dependencies, and Concurrency