Python Weekly 419


An article, course, or lecture

How to use Dropbox security to build a tool for threat detection and event response of log system

Traditionally, the most common way to build threat detection and response tools is to separate the automation part from the investigation part. In our experience, this can lead to a lot of crashes. In Dropbox, we have built a general basic abstract model for our log system, which can detect alertbox, covenant and forerunner in all stages of the event response cycle. Integration leverages powerful open source tools to enable us to quickly browse data and automate alerts, so we can focus on more complex threats.

Python 3.8

This article introduces the new features of Python 3.8 compared with 3.7.

Complete Python library import guide: absolute import, relative Import and other methods

How to construct your code to make the import structure clear.

How does haptik migrate a lot of code from Python 2 to Python 3?

How Haptik carried out their largest Python 3 Migration

This article describes how haptik completed the entire Python 2 to Python 3 code migration project with 0 down.

Segmentation and confrontation algorithm in Python Ultimate Guide

A very easy to understand segmentation and confrontation algorithm.

The simple nature of Y combiner (described in Python)

Y combiner is the core concept of lambda syntax, which is the basis of high-level programming language. The Y combiner allows you to define a recursion without using a self referencing function. I’ve read most articles devoted to y-composers that first show y-composers (which are quite difficult to understand), and then try to explain how they work. I don’t think it’s a good way. In this article, I will take another approach: I will first describe the essence of Y combiner in simple terms, or explain how to recurse without self reference, and then deduce the general concept of Y combiner.

Using Python’s Django to upload files to AWS S3

In this article, we’ll explore how Django handles file uploads and how to use cloud storage to extend this capability to meet our needs.

Using pandas’ qcut and cut functions to merge data

The qcut and cut functions of pandas are used to store continuous data values in discrete buckets or bins. This article describes the differences between the two commands and how to use them.

Drawing with pyqtgraph

In this tutorial, we’ll walk through creating a drawing widget using pyqtgraph, and then demonstrate custom drawing with line colors, line types, axis labels, background colors, and multiple lines.

How to deploy flask using mongodb and docker

In this tutorial, you will build, package, and run web applications using flask, nginx, and mongodb in the docker container. Learn to define the entire stack configuration in the docker-compose.yml file, and understand the configuration files of python, mongodb and nginx. Flask requires a web server to handle HTTP requests, so you’ll also learn to use gunicorn, the python WSGI HTTP service, to handle the application. As a reverse proxy, nginx forwards the request to gunicorn for processing.

Why is my verification set loss lower than the training set loss?

Why is my validation loss lower than my training loss?

In this tutorial, you will learn three main reasons why the loss value of verification set may be lower than that of training set when you train your deep learning neural network model.

Python property access and descriptor protocol：

Tens of thousands of scientific papers have been affected by some misconceptions about Python：

Step by step to teach you how to use sentry to monitor errors in real time in Django web applications：

Using spotify API interface to analyze user’s music habits：

An interesting project, tool, or library

Detectron 2 library analyzing music habits

Detectron 2 is the next generation software system of Facebook AI research, which implements the latest object detection algorithm. Detectron 2 is a complete rewrite of detectron.

PyTorch Mobile

Deploy pyttorch on IOS and Android devices.


Chart.js is an interactive drawing library for Python’s Django framework.


A small library using the type module is designed to use the static type checking function in Python.


An instance of the terminal running in the browser.


Machine learning framework for privacy protection.


A simple machine learning evaluator based on common standards.


A pytorch framework for distributed RL.


Load the image file into the numpy array with EXIF vector support to prevent image distortion!


A python command line shell.

New version

Python 3.8.0：

Python 3.8.0 is the latest version of Python programming language. Compared with version 3.7, many new functions and optimizations have been added. Now the stable version can be downloaded and used.

Django 3.0 beta 1：

PyPy v7.2：

This article is translated from Python weekly 419. It has been deleted and is not for commercial use.

Python Weekly 419

Recommended Today

PHP Basics – String Array Operations

In our daily work, we often need to deal with some strings or arrays. Today, we have time to sort them out String operation <?php //String truncation $str = ‘Hello World!’ Substr ($STR, 0,5); // return ‘hello’ //Chinese string truncation $STR = ‘Hello, Shenzhen’; $result = mb_ Substr ($STR, 0,2); // Hello //First occurrence of […]