django rest framework quick start tutorial

Django REST framework is a fast and flexible django plug-in, which is very convenient to build web API Official website link Key points of this chapter How to prepare a project (create a test environment, install django/restframework, etc.) Write seriallizer/view/url Configure restframe work test Prepare the project mkdir tutorial cd tutorial ...

Posted on Thu, 14 May 2020 08:57:09 -0700 by alsouno

The implementation of flash restful API and the basic permission control based on flash httpauth

This series of tutorials is divided into four stages 1.flask restful web service 2.flask restful api 3.flask Httpauth to realize authority control 4.uwsgi Manage flask applications  In the first two articles, we have studied the development and implementation of basic web services and restful api. After the implementation of interface develop ...

Posted on Thu, 14 May 2020 02:22:01 -0700 by Javizy

The implementation of flash restful API and the basic permission control based on flash httpauth

This series of tutorials is divided into four stages 1.flask restful web service 2.flask restful api 3. Flash httpauth realizes authority control 4.uwsgi management flask application   In the previous article, we introduced and studied the related content of implementing restful web services with flash. On this basis, we will develop and study ...

Posted on Thu, 14 May 2020 01:56:03 -0700 by ChibiGuy

Python+selenium+unittest+HTMLTestReportCN unit test framework sharing

Before that, Xiaobian shared the Python+selenium+unittest+HTMLTestRunner unit test framework. After a lot of time, they didn't touch the code for a long time. When it was opened, it was a clanging error report. A line of striking red error report reminded me that the code was updating. Why don't you make progress? There is nothing in-depth. The ...

Posted on Thu, 14 May 2020 00:01:11 -0700 by AoA_Falcon

The most complete data type conversion method of Python 3 is sorted out, which can be collected for manual use

This paper is based on python3.8 Version, summarizes the direct conversion rules and methods of various data types. It's quite complete. You can collect it as a manual to check.   summary Data type conversion refers to the conversion of one data from the original type to another type by some means. For example, we convert the string "123&q ...

Posted on Wed, 13 May 2020 23:57:26 -0700 by richardwarren

Implement appium multiprocess compatibility test based on pytest

Preface In practice, if you want to test the compatibility of multiple devices with appium, you may think of "multi-threading", but due to the influence of GIL in python, multi-threading can not achieve "multi-machine parallelism", so you can consider the use of multi-process at this time. Why based on pytest We know tha ...

Posted on Mon, 11 May 2020 21:59:27 -0700 by bmcewan

How to use Python to crawl small game websites and collect favorite games (with source code)

    Introduction: Python is a simple, easy to learn and powerful programming language. Without tedious configuration, master the basic syntax and understand the basic library functions, you can write your own programs by calling a large number of existing toolkits, easily realize batch automatic operation, and greatly improve the efficiency o ...

Posted on Mon, 11 May 2020 02:49:10 -0700 by Tea_J

(Python Basic Tutorial XIII) Examples of using httplib2-HTTP GET and POST in Python

Learn to use Python httplib2 Modular.Hypertext Transfer Protocol (HTTP) is an application protocol for distributed, collaborative, and hypermedia information systems.HTTP is the basis for data communication on the World Wide Web. The Python httplib2 module provides methods for accessing Web resources over HTTP.It supports many functions, such a ...

Posted on Sun, 10 May 2020 18:23:24 -0700 by shamsuljewel

Pygame game wolf eat sheep

1, Technical points: Animation Sprite, full screen mode, collision detection, sound effect playback, boundary judgment Game Description: 1. There are 10 lambs on the screen with random speed. 2. Keyboard up and down to control the movement of the wolf, when the wolf met the lamb, the lamb disappeared. The code is as follows: # -*- coding: utf-8 ...

Posted on Sat, 09 May 2020 07:13:13 -0700 by digitalecartoons

Python monitors Linux systems

1. Monitor Linux using open source libraries In this section, we will introduce an open source project, psutil, that is widely used in Python ecology.We will then use psutil to refactor the monitor we wrote in the previous section.In addition, the process management capabilities provided by psutil are briefly described. 1. Introduction to psut ...

Posted on Fri, 08 May 2020 09:25:10 -0700 by erikjan