Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Python commonly used built-in modules and commonly used third-party modules

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Built in module

Module

Description

Calendar

This module provides calendar-related functions

Datetime

Classes that manipulate dates and times in a variety of ways

Time

Access and conversion of time

String

Common string manipulation

Re

Regular expression operation

Difflib

An auxiliary tool for calculating differences

Textwrap

Automatic text wrapping and filling

Unicodedata

Unicode database

Numbers

Abstract base class of numbers

Math

Mathematical function

Cmath

On the mathematical functions of complex numbers

Decimal

Decimal point and floating point operations

Fractions

Score

Random

Generate pseudorandom numbers

Itertools

A function that creates an iterator for efficient loops

Functools

Higher-order functions and operations on callable objects

Operator

Standard operator substitution function

Pathlib

Object-oriented file system path

Os.path

Common path operation

Filecmp

Comparison of files and directories

Pickle

Python object serialization

Sqlite3

SQLite database DB-API 2.0 interface module

Zlib

Gzip compatible compression

Gzip

Support for gzip format

Bz2

Support for bzip2 compression algorithm

Lzma

Using LZMA algorithm to compress

Zipfile

Use ZIP to archive

Tarfile

Read and write tar archive files

Csv

CSV file read and write

Hashlib

Secure hash and message digest

Hmac

Message authentication based on key

Os

Operating system interface module

Io

Core tools for processing streams

Argparse

Command line options, parameters, and subcommand parsers

Logging

Logging tool for Python

Platform

Get the identification data of the underlying platform

Threading

Thread-based parallelism

Multiprocessing

Process-based parallelism

Subprocess

Child process management

Sched

Event scheduler

Queue

A synchronized queue class

Dummy_threading

Can directly replace threading module

Asyncio

Asynchronous IPUBO

Socket

Underlying network interface

Selectors

Advanced Ipaw O Multiplex Library

Asyncore

Asynchronous socket processor

Asynchat

Asynchronous socket instruction / response processor

Mmap

Memory-mapped file support

Signal

Set up asynchronous event handlers

Email

Email and MIME processing package

Json

JSON encoder and decoder

Base64

Base16, Base32, Base64, Base85 data coding

Binascii

Conversion between binary and ASCII codes

Html

Hypertext markup language support

Html.parser

Simple HTML and XHTML parsers

Html.entities

Definition of HTML general entity

Webbrowser

Convenient Web browser controller

Urllib

URL processing module

Urllib.request

Open the extensible library of URL

Urllib.response

Response classes used by urllib

Http.client

HTTP protocol client

Ftplib

FTP protocol client

Poplib

POP protocol client

Smtplib

SMTP protocol client

Smtpd

SMTP server

Http.server

HTTP server

Wave

Read and write files in WAV format

Colorsys

Conversion between color systems

Imghdr

Speculate image type

Sndhdr

Speculate on the type of sound file

Gettext

Multilingual international service

Locale

International service

Turtle

Sea turtle drawing

Cmd

Support for line-oriented command interpreter

Tkinter

Tk graphical user interface

2to3

Automatically convert Python 2 code to Python 3 code

Pdb

Debugger for Python

Distutils

Build and install the Python module

Venv

Create a virtual environment

Sys

System-related parameters and functions

Gc

Garbage collector interface

Inspect

Check object

Keyword

Verify the Python keyword

Tabnanny

Fuzzy indentation detection

Dis

Python bytecode disassembler

Pprint

Data beautification output

Heapq

Heap queue algorithm

Bisect

Array binary search algorithm

Commonly used third-party modules

Module

Description

Requests

Highly encapsulated HTTP protocol

Bs4

Parsing the module of HTML

Pymongo

Write data to MongoDB

Numpy

It supports a large number of dimensional array and matrix operations, and also provides a large number of mathematical function libraries for array operations.

Pandas

A powerful tool set for analyzing structured data

Scipy

Advanced scientific computing library. Including probability statistics, signals, Fourier and so on.

Sympy

Symbolic computing library

Statsmodels

Statistics & Metrology Library

PIL (Pillow)

Image processing standard library

Chardet

String coding library

Jinja2

Template engine based on python

Flask

A lightweight Web application framework written in Python. Its WSGI toolbox uses Werkzeug, and its template engine uses Jinja2.

Django

An open source Web application framework written by Python. The frame pattern of MTV is adopted, that is, model M, view V and template T

Tornado

An open source version of Web server software. Tornado is obviously different from today's mainstream Web server frameworks (including most Python frameworks): it is a non-blocking server and is quite fast.

PyQt5

Application interface for writing Python scripts

Pyecharts

Class library for generating Echarts diagrams

Pygame

A module specially designed for video games

Jieba

Chinese word segmentation module

Matplotlib

Python's drawing library. It can be used with NumPy

Wordcloud

Word cloud generator

Scrapy

Very powerful crawler framework, which can satisfy simple page crawling

Crawley

High-speed crawl the content of the corresponding website, support relational and non-relational databases, and the data can be exported to JSON, XML, etc.

Portia

Visually crawl web page content

Newspaper

Extract news, articles and content analysis

Selenium

A driver that calls the browser. Through this library, you can directly call the browser to complete some operations, such as entering the CAPTCHA.

Cola

Distributed crawler framework

Dnspython

DNS toolkit

XlsxWriter

Manipulate Excel worksheet text, numbers, formulas, charts, etc.

Smtplib

Send email module

Pymysql

Manipulate MySQL database

NLTK

A third-party library of natural language processing, commonly used in the NLP field, can build a word bag model (word counting), support word frequency analysis (number of word occurrences), pattern recognition, association analysis, emotion analysis (word frequency analysis + metrics), visualization (+ matploylib analysis chart), etc.

Sklearn

Some machine learning algorithms are implemented.

SQLAlchemy

The design pattern-based object-relational mapping ORM is famous for mapping python classes to tables in the database.

PonyORM

ORM package, which can query and optimize automatically, and can query the database through the generator expression of python

Statsmodels

Can cooperate with numpy, scipy, pandas to complete signal processing, cointegration, filtering, spectral analysis, etc.

Lxml

Xml and HTML reading and parsing

Win32com

Comprehensive application library related to Windows system operation, Office (Word, Excel, etc.) file reading and writing, etc.

HappyBase

HBase connection library

OpenCV

Image and video work library

TimeSide

Python framework for audio analysis, imaging, transcoding, streaming and tag processing

Pydub

Support multiple formats of sound files, can perform a variety of signal processing, signal generation, sound effect registration, mute processing, etc.

TensorFlow

Google's second-generation machine learning system, built-in extended support for deep learning

Theano

In-depth learning library. It is tightly integrated with Numpy and supports GPU computing, unit testing and self-verification

Keras

An advanced neural network API written in Python, which can run on TensorFlow or Theano, and its development focus is to achieve rapid experiments.

Caffe

A deep learning framework, mainly used in computer vision, has a good application effect on the classification of image recognition.

IPython

An interactive shell based on Python is much easier to use than the default Python shell. It supports automatic completion of variables, automatic indentation, interactive help, magic commands, system commands, etc., and has many useful functions and functions built in.

PTVS

Visual Studio's Python tool

Matpython

MATLAB integrated library

PySpark

Python API provided by Spark

Plotly

The graphics library provided by Plotly can carry out online WEB interaction, and provide graphics with publishing quality, supporting many graphics, such as line graph, scatter chart, area chart, bar chart, error bar, block diagram, histogram, heat map, subgraph, multi-axis, polar coordinate chart, bubble chart, rose chart, thermal map, funnel chart and so on.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report