Python

Docker Package Flask image

The main advantage of docker is that it can be easily deployed to the cloud, because the container has the additional benefit of running anywhere without facing dependency conflicts

2021 Python 2.7 install PIP

Since the mainstream version of `Python` is already `3.x`, many tutorials on the Internet are no longer able to install PIP, so please record

Python uses websocket-client

WebSocket is a two-way communication protocol based on the TCP protocol that allows real-time data transfer between the browser and the server. In Python, a WebSocket client can be easily implemented using the websocket-client library

Use timing tasks in Django application container

As a Django application developer, you often encounter situations like this: You want to be able to perform periodic asynchronous background tasks. It will come in handy if you want to create some background checks, send notifications or build a cache

Validate credit card numbers with Python

The purpose of this article is to explain how to write a simple credit card validator in Python. The algorithm used to verify the card number is called Luhn's algorithm