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

What does Python 200standard library refer to?

2025-01-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article is to share with you about the standard library of Python 200. the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

Text

String: general string manipulation

Re: regular expression operation

Difflib: a tool for differential calculation

Textwrap: text fill

Unicodedata:Unicode character database

Stringprep: Internet string preparation tool

Readline:GNU read-by-line interface

The implementation function of rlcompleter:GNU reading by row

Struct: parses bytes into packaged binary data

Codecs: codecs for registry and base classes

Data type

Datetime: based on date and time tool

Calendar: general month function

Collections: container data type

Collections.abc: container virtual base class

Heapq: heap queue algorithm

Bisect: array dichotomy algorithm

Array: efficient numeric array

Weakref: weak reference

Types: dynamic creation and naming of built-in types

Copy: shallow copy and deep copy

Reprlib: implementation of alternating repr ()

Mathematics

Numbers: virtual base class of numeric values

Math: mathematical function

Cmath: a mathematical function of a complex number

Decimal: fixed point number and floating point number calculation

Fractions: rational number

Random: born into a random number

Functional programming

Itertools: generate iterators for efficient loops

Functools: higher-order functions and operations on callable objects

Operator: standard operation for functions

Files and directories

Os.path: generic pathname control

Fileinput: traversing rows from multiple input streams

Stat: explain the results of stat ()

Filecmp: comparison function between file and directory

Tempfile: generate temporary files and directories

Extension of glob:Unix style path name format

Comparison of fnmatch:Unix style path name format

Linecache: random storage of lines of text

Shutil: advanced file manipulation

Macpath:MacOS 9 path control function

Persistence

Pickle:Python object serialization

Copyreg: the pickle support function of the registration machine

Shelve:Python object persistence

Marshal: internal Python object serialization

Dbm:Unix "database" interface

Sqlite3: API2.0 for SQLite database

Compress

Zlib: compatible with gzip compression

Gzip: support for gzip files

Bz2: support for bzip2 compression

Lzma: compression using the LZMA algorithm

Zipfile: manipulating ZIP archives

Tarfile: read and write tar archive files

Encrypt

Hashlib: secure hash and message digest

Hmac: keyboard column for message authentication

Operating system tools

Os: multifaceted operating system interface

Io: flow Core tool

Time: query and conversion of time

Argparser: parser for command line options, parameters, and subcommands

Optparser: command line option parser

Getopt:C style command line option parser

Logging:Python logging tool

Logging.config: log configuration

Logging.handlers: log processor

Getpass: simple password entry

Curses: terminal processing of character display

Text input field of curses.textpad:curses program

Curses.ascii:ASCII character set tool

Control Stack extension of curses.panel:curses

Platform: access the underlying platform authentication data

Errno: standard error notation

Ctypes:Python external function library

Concurrence

Threading: thread-based parallelism

Multiprocessing: process-based parallelism

Concurrent: concurrent package

Concurrent.futures: start a parallel task

Subprocess: child process management

Sched: event scheduling

Queue: synchronization queu

Select: wait for I / O to complete

Replacement of dummy_threading:threading module (when _ thread is not available)

_ thread: underlying thread API (on which threading is based)

Replacement of _ dummy_thread:_thread module (when _ thread is not available)

Interprocess communication

Socket: underlying network interface

TLS / SSL fillers for ssl:socket objects

Asyncore: asynchronous socket processor

Asynchat: asynchronous socket command / response processor

Signal: asynchronous transaction signal processor

Mmap: memory-mapped file support

Internet

Email: Mail and MIME processing package

Json:JSON encoding and decoding

Mailcap:mailcap file processing

Mailbox: multiple format control mailboxes

Mimetypes: file name and MIME type mapping

Base64:RFC3548:Base16, Base32, Base64 coding

Binhex:binhex4 File Encoding and Decoding

Binascii: conversion between binary Code and ASCII Code

Encoding and Decoding of quopri:MIMEquoted-printable data

Coding and Decoding of uu:uuencode File

Internet Protocol and support

Webbrowser: simple Web browser controller

Cgi:CGI support

Cgitb:CGI script backtracking Manager

Wsgiref:WSGI tools and reference implementation

Urllib:URL processing module

Urllib.request: open the extended library for URL connections

Response class of the urllib.response:urllib module

Urllib.parse: parsing URL into components

Exception class thrown by urllib.error:urllib.request

Parser for urllib.robotparser:robots.txt

Http:HTTP module

Http.client:HTTP protocol client

Ftplib:FTP protocol client

Poplib:POP protocol client

Imaplib:IMAP4 protocol client

Nntplib:NNTP protocol client

Smtplib:SMTP protocol client

Smtpd:SMTP server

Telnetlib:Telnet client

UUID object of uuid:RFC4122

Socketserver: network server framework

Http.server:HTTP server

Http.cookies:HTTPCookie status Manager

Cookie processing of http.cookiejar:HTTP client

Xmlrpc:XML-RPC server and client module

Xmlrpc.client:XML-RPC client access

Xmlrpc.server:XML-RPC Server Foundation

Ipaddress:IPv4 / IPv6 control library

Multimedia

Audioop: processing raw audio data

Aifc: reading and writing AIFF and AIFC files

Sunau: reading and writing Sun AU files

Wave: reading and writing WAV files

Chunk: reading files from IFF

Colorsys: conversion between color system

Imghdr: specify image type

Sndhdr: specify sound file type

Ossaudiodev: access to OSS-compatible audio devices

Internationalization

Gettext: a multilingual internationalization service

Locale: international service

Programming framework

Turtle:Turtle graphics library

Cmd: line-based command interpreter support

Shlex: simple dictionary analysis

Tk graphical user interface

Tkinter:Tcl / Tk interface

Tkinter.ttk:Tk theme control

Tkinter.tix:Tk extension control

Tkinter.scrolledtext: roller text control

Development tools

Pydoc: document generator and online help system

Doctest: interactive Python example

Unittest: unit testing framework

Unittest.mock: analog object library

Test:Python regression test package

Test.support:Python test kit

Venv: building virtual environment

Debug

Bdb: debugging framework

Faulthandler:Python backtracking library

Pdb:Python Debugger

Timeit: measuring the execution time of a small piece of code

Trace:Python execution status tracking

Run time

Sys: system-related parameters and functions

Sysconfig: accessing Python configuration information

Builtins: built-in object

Main: top-level scripting environment

Warnings: warning control

Context tool for contextlib:with status

Abc: virtual base class

Atexit: egress processor

Traceback: print or read the reverse trace of a stack

Future: future state definition

Gc: garbage collection interface

Inspect: check for surviving objects

Site: address-related configuration hook (hook)

Fpectl: floating point exception control

Distutils: generating and installing Python modules

Interpreter

Code: base class interpreter

Codeop: compiling Python code

Import module

Imp: accessing the interior of the import module

Zipimport: importing modules from a ZIP archive

Pkgutil: package extension tool

Modulefinder: finding modules through scripts

Runpy: locate and execute the Python module

An implementation of importlib:import

Python language

Parser: accessing the Python parsing tree

Ast: abstract syntax tree

Symtable: accessing the compiler symbol table

Constants in symbol:Python parsing tree

Constants in token:Python parsing tree

Keyword:Python keyword test

Tokenize:Python source file participle

Tabnany: fuzzy indentation detection

Pyclbr:Python class browsing support

Py_compile: compiling Python source files

Compileall: compiling Python libraries by byte

Disassembler of dis:Python bytecode

Pickletools: serialization development tool

Other

Formatter: general formatted output

Windows correlation

Msilib: read and write the Installer file of Windows

Useful programs for msvcrt:MS VC + + Runtime

Winreg:Windows registry access

Winsound:Windows sound playback interface

Unix correlation

Posix: the most commonly used POSIX call

Pwd: password database

Spwd: electronic password database

Grp: group database

Crypt:Unix password authentication

Termios:POSIX style tty control

Tty: terminal control function

Pty: pseudo terminal tool

Fcntl: system calls fcntl () and ioctl ()

Pipes:shell pipe interface

Resource: information available for resources

The interface of nis:Sun 's NIS

Syslog:Unix Log Service

This is what the Python 200standard library refers to. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

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

Development

Wechat

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

12
Report