Tagged articles
149 articles
Page 2 of 2
Python Programming Learning Circle
Python Programming Learning Circle
Apr 16, 2021 · Backend Development

Optimizing a Slow Settings Page: Profiling, Threading, and MySQL Improvements in a Python Flask Backend

This article details how a Python Flask backend with a 36‑second settings page was diagnosed using Chrome Network and flame‑graph profiling, then optimized by redesigning UI interactions, eliminating per‑gid threading, and batching MySQL queries, ultimately reducing response time to 1.47 seconds.

BackendFlaskmysql
0 likes · 8 min read
Optimizing a Slow Settings Page: Profiling, Threading, and MySQL Improvements in a Python Flask Backend
Python Crawling & Data Mining
Python Crawling & Data Mining
Oct 23, 2020 · Backend Development

Build a Flask‑Elasticsearch Search Engine: From Config to Deployment

This tutorial walks through building a Flask‑based search engine powered by Elasticsearch, covering configuration files, logging setup, blueprint routing with pagination, application initialization, and deployment options using Flask‑Script and Gunicorn, with complete code examples and a GitHub repository link.

ElasticsearchFlaskGunicorn
0 likes · 11 min read
Build a Flask‑Elasticsearch Search Engine: From Config to Deployment
MaGe Linux Operations
MaGe Linux Operations
Oct 21, 2020 · Backend Development

Scrape Tenda Router Data with Python Requests and Serve It via a Flask API

This guide walks through analyzing a Tenda router's web interface to discover its data‑fetching URLs, extracting all available modules, and then using Python's requests library to retrieve the information and expose it through a simple Flask API, with both object‑oriented and functional code examples.

BackendFlaskRouter
0 likes · 7 min read
Scrape Tenda Router Data with Python Requests and Serve It via a Flask API
MaGe Linux Operations
MaGe Linux Operations
Aug 13, 2020 · Backend Development

Cutting a 37‑Second API Call to 1.5 Seconds with Python Flask Profiling

When a business platform’s settings page took 36 seconds to load, we used Chrome’s Network timing, Python profiling, and MySQL query analysis to identify backend bottlenecks, then applied redesign, thread‑pooling, batch queries, and ORM optimizations, reducing response time from 37.6 s to 1.47 s.

Backend DevelopmentFlaskPerformance Optimization
0 likes · 9 min read
Cutting a 37‑Second API Call to 1.5 Seconds with Python Flask Profiling
NetEase Game Operations Platform
NetEase Game Operations Platform
Aug 8, 2020 · Backend Development

Debugging “Instance XXX is not bound to a Session” Errors in Gevent‑Enabled Flask APIs with SQLAlchemy

This article analyzes the intermittent “Instance XXX is not bound to a Session” error that occurs after converting a Flask‑SQLAlchemy endpoint from serial to multithreaded/gevent concurrency, reproduces the issue with test code, explains the root cause in session handling, and provides a concrete fix by patching gevent before session initialization.

BackendFlaskPython
0 likes · 6 min read
Debugging “Instance XXX is not bound to a Session” Errors in Gevent‑Enabled Flask APIs with SQLAlchemy
Python Crawling & Data Mining
Python Crawling & Data Mining
Aug 1, 2020 · Backend Development

Build a Flask‑Elasticsearch Search Engine: Config, Logging, Routing & Deployment Guide

This tutorial walks you through creating a Flask‑based search engine powered by Elasticsearch, covering configuration files, logging setup, blueprint routing with pagination, project startup using Flask‑Script, and production deployment with Gunicorn, complete with code examples and essential tips.

Backend DevelopmentElasticsearchFlask
0 likes · 11 min read
Build a Flask‑Elasticsearch Search Engine: Config, Logging, Routing & Deployment Guide
Ops Development Stories
Ops Development Stories
Apr 9, 2020 · Databases

Build a Simple Employee Management System with MongoDB and Flask

This tutorial walks you through creating a web‑based employee management system that demonstrates MongoDB CRUD operations using Python, Flask, and Pipenv, covering project setup, environment configuration, code implementation for querying, adding, updating, and soft‑deleting records, and how to run the application.

CRUDEmployee ManagementFlask
0 likes · 15 min read
Build a Simple Employee Management System with MongoDB and Flask
NetEase Game Operations Platform
NetEase Game Operations Platform
Feb 8, 2020 · Backend Development

Diagnosing /tmp Disk Space Exhaustion in a Flask File Transfer Service: Understanding Werkzeug Form Parsing and Temporary File Handling

The article investigates a sudden /tmp disk‑space explosion in a Flask‑based file transfer service, analyzes the Werkzeug form‑parsing code that creates temporary files for uploads larger than 500 KB, demonstrates reproducible tests with inotify and Python scripts, and offers practical recommendations to prevent similar failures.

FlaskPythonTemporaryFile
0 likes · 13 min read
Diagnosing /tmp Disk Space Exhaustion in a Flask File Transfer Service: Understanding Werkzeug Form Parsing and Temporary File Handling
MaGe Linux Operations
MaGe Linux Operations
Jan 2, 2020 · Backend Development

Build a Flask Web App Quickly: From Setup to Blueprint Modularization

This guide walks you through installing Flask, structuring a project with webapp, templates, and static files, writing core code and routes, using Blueprint for modularization, rendering Jinja2 templates, and running the app, providing complete code snippets and configuration tips for rapid backend development.

Backend DevelopmentBlueprintFlask
0 likes · 7 min read
Build a Flask Web App Quickly: From Setup to Blueprint Modularization
MaGe Linux Operations
MaGe Linux Operations
Dec 24, 2019 · Backend Development

Build a Full‑Stack Zhihu Hot List: From Scraper to Mini‑App API

This tutorial walks through creating an end‑to‑end Zhihu hot‑list project that scrapes the billboard page, stores the data with Flask‑SQLAlchemy, schedules periodic updates, exposes RESTful APIs, and finally displays the results in a uni‑app mini‑program with interactive charts.

APIFlaskScheduler
0 likes · 11 min read
Build a Full‑Stack Zhihu Hot List: From Scraper to Mini‑App API
21CTO
21CTO
Aug 16, 2019 · Backend Development

Master Scrapy: Build, Deploy, and Scale a Python Web Crawler Platform

This guide walks through designing a full‑featured web‑crawler platform, covering rule maintenance, job scheduling, async and real‑time crawling with Scrapy, project setup, item pipelines, settings, local execution, custom parameters, server deployment via Scrapyd, API usage, and fast real‑time crawling with Requests, BeautifulSoup, Flask, and multithreading.

AsyncFlaskPython
0 likes · 16 min read
Master Scrapy: Build, Deploy, and Scale a Python Web Crawler Platform
Architecture Digest
Architecture Digest
Aug 15, 2019 · Backend Development

Design and Implementation of a Scrapy‑Based Web Crawling Platform

This article explains how to design a flexible web‑crawling platform using Scrapy, covering rule maintenance, job scheduling, asynchronous and real‑time crawlers, project setup, code structure, settings, local execution, deployment with scrapyd, API usage, and examples of Flask‑based real‑time services.

AsyncDeploymentFlask
0 likes · 16 min read
Design and Implementation of a Scrapy‑Based Web Crawling Platform
Python Crawling & Data Mining
Python Crawling & Data Mining
Jul 21, 2019 · Backend Development

From Zero to Web: A Complete Python Backend Development Roadmap

This guide walks beginners through Python fundamentals, essential development tools, HTTP basics, front‑end basics, popular web frameworks, database choices, testing strategies, and deployment techniques, offering practical book recommendations and actionable steps to start building real web applications.

Backend DevelopmentDjangoFlask
0 likes · 7 min read
From Zero to Web: A Complete Python Backend Development Roadmap
MaGe Linux Operations
MaGe Linux Operations
Feb 28, 2019 · Fundamentals

5 Compelling Reasons to Master Python Decorators Today

This article explains why learning Python decorators is essential, covering their impact on code readability, logging, validation, framework integration, reuse, and career advancement, while providing clear examples and practical guidance for developers of all levels.

FlaskPythonRetry
0 likes · 9 min read
5 Compelling Reasons to Master Python Decorators Today
MaGe Linux Operations
MaGe Linux Operations
Feb 13, 2019 · Backend Development

Build Your First Flask Web App: A Quick‑Start Tutorial

This article introduces Flask, a Python micro‑framework, covering installation, a minimal "Hello Flask" example, debugging, routing, URL building, request handling, templates, static files, cookies, sessions, and response customization, providing ready‑to‑run code snippets for each feature.

BackendFlaskPython
0 likes · 16 min read
Build Your First Flask Web App: A Quick‑Start Tutorial
MaGe Linux Operations
MaGe Linux Operations
Nov 24, 2018 · Backend Development

Build a Simple Student Management System with Python RESTful API

This tutorial walks through designing a RESTful API, creating a school‑teacher‑student CRUD system, modeling the database schema, structuring the Flask project, and using tools like Postman and curl to test the Python backend, with code snippets and diagrams illustrating each step.

CRUDFlaskPostman
0 likes · 3 min read
Build a Simple Student Management System with Python RESTful API
360 Quality & Efficiency
360 Quality & Efficiency
Sep 26, 2018 · Backend Development

Understanding Flask URL Routing and View Functions

This article explains Flask's URL routing mechanisms, covering the route decorator and add_url_rule methods, static and dynamic routes, variable types, and how to use url_for for reverse URL generation and static file linking.

Dynamic RoutesFlaskURL routing
0 likes · 4 min read
Understanding Flask URL Routing and View Functions
MaGe Linux Operations
MaGe Linux Operations
Apr 24, 2018 · Fundamentals

5 Compelling Reasons to Master Python Decorators

This article explains why learning to write Python decorators is essential, covering benefits such as improved logging, validation, framework integration, code reuse, retry logic, and career advancement, while providing clear examples and practical code snippets.

Flaskcode-reusedecorators
0 likes · 8 min read
5 Compelling Reasons to Master Python Decorators
21CTO
21CTO
Mar 5, 2018 · Blockchain

Build a Simple Blockchain API with Python and Flask – Step‑by‑Step Guide

Learn how to build a functional blockchain in Python using Flask, covering environment setup, the core Blockchain class, block and transaction structures, a simple proof‑of‑work algorithm, RESTful API endpoints, node registration, and a longest‑chain consensus mechanism, complete with runnable code examples.

APIConsensusFlask
0 likes · 15 min read
Build a Simple Blockchain API with Python and Flask – Step‑by‑Step Guide
DevOps Engineer
DevOps Engineer
Dec 2, 2017 · Backend Development

From QA to Backend Developer: My Self‑Learning Journey with Python and Flask

This article recounts a QA professional’s step‑by‑step transition to backend development through self‑studying Python, Flask, and related technologies, detailing timelines, resources, challenges, productivity tips, and future goals while offering practical advice for others seeking a similar career change.

FlaskWeb Developmentcareer transition
0 likes · 8 min read
From QA to Backend Developer: My Self‑Learning Journey with Python and Flask
MaGe Linux Operations
MaGe Linux Operations
Aug 21, 2017 · Backend Development

Building a Simple Student Management System with Python RESTful APIs

This tutorial walks through creating a lightweight student management system in Python, covering RESTful API design, CRUD operations for school, teacher, and student data, database schema creation with SQLAlchemy, Flask endpoint implementation, and tools for testing and result visualization.

CRUDDatabase designFlask
0 likes · 5 min read
Building a Simple Student Management System with Python RESTful APIs
Hujiang Technology
Hujiang Technology
Aug 15, 2017 · Artificial Intelligence

Integrating Google Facets into a Flask Web Application for Data Visualization

This tutorial demonstrates how to set up a Flask web application that uploads CSV files and visualizes machine‑learning datasets using Google Facets Overview and Dive components, providing step‑by‑step code, configuration, and examples of data insights and potential use cases.

Data visualizationFlaskGoogle Facets
0 likes · 13 min read
Integrating Google Facets into a Flask Web Application for Data Visualization
ITPUB
ITPUB
Mar 21, 2017 · Backend Development

Understanding How Nginx, WSGI, and Flask Work Together

This article clarifies the three‑layer architecture of a web request—web server, WSGI interface, and web framework—by explaining each layer’s role, showing code examples for Flask and a raw WSGI app, and distinguishing related protocols such as uWSGI and CGI.

Backend DevelopmentFlaskPython
0 likes · 7 min read
Understanding How Nginx, WSGI, and Flask Work Together
ITPUB
ITPUB
Dec 25, 2015 · Backend Development

Build a Simple Python WSGI Server that Runs Django, Flask, and Pyramid

This guide shows how to create a minimal Python WSGI server that can run Django, Flask, and Pyramid applications without modifying server or framework code, explains WSGI fundamentals, provides step‑by‑step setup, code snippets, testing commands, and demonstrates the server‑framework interaction.

Backend DevelopmentDjangoFlask
0 likes · 11 min read
Build a Simple Python WSGI Server that Runs Django, Flask, and Pyramid
MaGe Linux Operations
MaGe Linux Operations
Sep 22, 2015 · Backend Development

Deploying Python Flask Apps with Nginx, Gunicorn, and Supervisor

Learn how to set up a Python Flask web service on Linux by creating a virtual environment, installing Flask, configuring Nginx as a reverse proxy, deploying with Gunicorn as the WSGI server, and managing processes using Supervisor, complete with command examples.

DeploymentFlaskGunicorn
0 likes · 9 min read
Deploying Python Flask Apps with Nginx, Gunicorn, and Supervisor
Efficient Ops
Efficient Ops
Jun 29, 2015 · Operations

Inside Efficient Ops: Docker, Redis Cluster, and Container Resource Management

The article records a Q&A session from the Efficient Operations talk, where guest Peng Zhef of Mango TV discusses Docker, Redis Cluster, container resource controls, and related operational challenges, providing practical insights into Python/Flask development, pod scaling, and Linux cgroup tuning.

Container ManagementFlaskOperations
0 likes · 8 min read
Inside Efficient Ops: Docker, Redis Cluster, and Container Resource Management
Qunar Tech Salon
Qunar Tech Salon
Jan 12, 2015 · Backend Development

Designing and Building a Private Docker Registry Service

This article outlines the requirements, architecture, and implementation considerations for creating a private Docker registry, covering intelligent layer deduplication, a searchable web UI, horizontal scaling, and the underlying Python/Flask stack with various storage back‑ends.

DockerFlaskWeb UI
0 likes · 5 min read
Designing and Building a Private Docker Registry Service