Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Python Common Library


May 30, 2021 Article blog


Table of contents


GUI graphical interface

1.wxpython

The GUI programming framework under Python is similar to the architecture of the MFC

Download address: http://wxpython.org/download.php

2. PyQt

QT development library for Python

Download address: http://www.riverbankcomputing.com/software/pyqt/download

Web framework

1. Django

Open source web development framework that encourages rapid development and follows MVC design

Download address: http://www.djangoproject.com/

2. web2py

A small, flexible Web framework that is simple but powerful

Download address: http://web2py.com/

Scientific calculations

1. Matplotlib

A third-party library of the class matlab implemented with Python to draw some high-quality mathematical 2D graphics

Download the address:

http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/

2. SciPy

Python-based matlab implementations are designed to implement all the functionality of matlabs

Download address: http://pypi.python.org/pypi/scipy/

3. NumPy

A third-party library of scientific computing based on Python provides solutions for matrices, linear algebra, Fourier transformations, and more

Download address: http://pypi.python.org/pypi/numpy/

Web page processing

1. BeautifulSoup, powerful fault tolerance

Web pages handle very powerful packages

http://www.crummy.com/software/BeautifulSoup/

2. PyQuery, working with documents in Python as jQuery on a web page

Download: https://pypi.python.org/pypi/pyquery

Document: https://pythonhosted.org/pyquery/

other

1. MySQLdb

Used to connect to the MySQL database

Download address: http://pypi.python.org/pypi/MySQL-python/

2. PIL

Python-based image processing library is powerful and supports a wide range of graphics file formats

Download address: http://effbot.org/zone/pil-index.htm

3. PyGame

Python-based multimedia development and game software development modules

Download address: http://www.pygame.org/download.shtml

4.sh System management

sh allows you to execute shell terminal commands like a function

Download address: https://pypi.python.org/pypi/sh

5. pickle (cPickle)

6. json

7. random

8. datetime

Special introduction

1. cx_Freeze

Convenient and simple packaging tools, cross-platform!

Download address: http://cx-freeze.sourceforge.net/

2. psyco

The execution efficiency of the script is somewhat poor, although optimization is not difficult, but if there is a simple method, almost do not need to modify the source code, it is certainly worth paying attention to. The magic of psyco is that it only needs to call just two lines of code at the entrance to the code, and performance can be improved by 40% or more, which is instant!

If your client thinks your program is a little slow, please don't rush to optimize the code, psyco may be able to change his mind immediately. Psyco is Python's jit and has a lot of potential to tap into, and if there's not much time left to optimize your performance, read its manual right away, and there are plenty of tricks to easily optimize performance.


These are some of the third-party libraries commonly used by python

Recommended lessons: Python Machine Learning Battle, Python3 Advanced: Data Analysis and Visualization