Flask Series (9) - Flask-WTF

Flask-WTF Flask-WTF is a third-party library that simplifies WTForms operations. The two main functions of the WTForms form are to verify the validity of the data submitted by the user and to render the template. Of course, there are also some other functions: CSRF protection, file upload and so on. Installing Flask-WTF also installs WTForms ...

Posted by brownka on Sun, 16 Jun 2019 01:25:21 +0200

Crawler processes and Python third-party library usage

Usages such as requests pymongo BS4 from future import print_functionPrit does not need parentheses in #python2.X, but it does in python3.X.Add this sentence at the beginning, even after python2.X, using print requires bracketing like python3.X import requests Import requests without requests at https://pip.pypa.io/en/s ...

Posted by cac_azure03 on Sat, 15 Jun 2019 18:38:15 +0200

Basic interaction between python-boto3 and dynamoDB, backup and recovery of tables

Reference material: http://boto3.readthedocs.io/en/latest/reference/services/dynamodb.html Recently, due to the need of work, we have studied the dynamoDB part of boto3, and have some experience. Here we summarize it. The first is the boto3 installation, which runs on a machine equipped with python and pip sudo pip install boto3   In the of ...

Posted by bucfan99 on Sat, 15 Jun 2019 00:33:31 +0200

python project to solve sandbox dependence problem in production environment without external network

python project to solve sandbox dependence problem in production environment without external network In our actual production project deployment process, such as banking, government intranet, can not access certain dependency sources. Considering the actual situation, we will see how to solve this problem. development environment Establishin ...

Posted by JeBu on Fri, 07 Jun 2019 20:01:14 +0200

matplotlib for data visualization

A learning blog post from the matplotlib library.matplotlib is very important for data visualization, it fully encapsulates all the API s of MatLab, and it works best with Python's syntax in a python environment. I. Installation of Library and configuration of environment Under windows: py-3-m PIP install Matplotlib Under linux: python3-m PIP ...

Posted by seaweed on Thu, 06 Jun 2019 18:48:11 +0200

Introduction to pandas (1): Installation and Creation of pandas

pandas is a third-party library that must be familiar with for data analysts. pandas has great advantages in scientific computing, especially for data analysts. There is Numpy in python, but Numpy is more mathematic. There is also a need for a database to represent the data model more specifically. We are very clear that EXCEL plays a very impo ...

Posted by jthomp7 on Wed, 15 May 2019 20:33:13 +0200

Movie Recommendation Using Surprise Package

Surprise (Simple Python Recommendation System Engine) is a recommendation system library, which is one of the scikit series. Simple and easy to use, while supporting a variety of recommendation algorithms (basic algorithm, collaborative filtering, matrix decomposition, etc.). The following purposes are taken into account when ...

Posted by dopp on Wed, 15 May 2019 15:35:12 +0200

Ali Cloud OSS and Tencent Cloud COS Migrate

Use the migration tools provided in Ali and Tencent's help documents to test the migration objects for storing data. 1. Tencent to AliDocument Links: https://help.aliyun.com/document_detail/56990.html?spm=5176.7851628.6.1079.UqBdXKThe OssImport tool migrates data stored locally and in other clouds to OSS with the following features: The rich ...

Posted by DWaller10 on Fri, 10 May 2019 21:58:41 +0200

Introduction to using pipenv

conda was used as a virtual environment management tool during development, but sometimes it is temporary and necessary.If you use conda create to create a new environment, it takes a lot of time, sometimes forgot to delete it, and finally a bunch of virtual environments in the system.After accidentally discovering pipenv, try it out and feel t ...

Posted by illushinz on Wed, 08 May 2019 17:36:02 +0200

Technical summary

Install pygame module Install modules for making games Installation through pip command pip install pygame Game Initialization and Exit Initialization pygame.init() Sign out pygame.quit() Rectangular area object Four Elements of Rectangular Area x coordinates, y coordinates, width, height x,y,width,heigh Descri ...

Posted by khefner on Wed, 08 May 2019 02:15:03 +0200