文档章节

可能经常用到的标准模块和第三方常用的50个库

黄哥Python培训
 黄哥Python培训
发布于 2014/02/10 08:50
字数 1110
阅读 657
收藏 6

可能经常用到的标准模块和第三方常用的50个库
数学计算:

    numbers — Numeric abstract base classes
    math — Mathematical functions
    cmath — Mathematical functions for complex numbers
    decimal — Decimal fixed point and floating point arithmetic
    fractions — Rational numbers
    random — Generate pseudo-random numbers
    itertools — Functions creating iterators for efficient looping
    functools — Higher-order functions and operations on callable objects
    operator — Standard operators as functions

文件和目录访问:
    os.path — Common pathname manipulations
    fileinput — Iterate over lines from multiple input streams
    stat — Interpreting stat() results
    statvfs — Constants used with os.statvfs()
    filecmp — File and Directory Comparisons
    tempfile — Generate temporary files and directories
    glob — Unix style pathname pattern expansion
    fnmatch — Unix filename pattern matching
    linecache — Random access to text lines
    shutil — High-level file operations
    dircache — Cached directory listings
    macpath — Mac OS 9 path manipulation functions
数据持久化:

    pickle — Python object serialization
    cPickle — A faster pickle
    copy_reg — Register pickle support functions
    shelve — Python object persistence
    marshal — Internal Python object serialization
    anydbm — Generic access to DBM-style databases
    whichdb — Guess which DBM module created a database
    dbm — Simple “database” interface
    gdbm — GNU’s reinterpretation of dbm
    dbhash — DBM-style interface to the BSD database library
    bsddb — Interface to Berkeley DB library
    dumbdbm — Portable DBM implementation
    sqlite3 — DB-API 2.0 interface for SQLite databases
通用操作系统服务:

    os — Miscellaneous operating system interfaces
    io — Core tools for working with streams
    time — Time access and conversions
    argparse — Parser for command-line options, arguments and sub-commands
    optparse — Parser for command line options
    getopt — C-style parser for command line options
    logging — Logging facility for Python
    logging.config — Logging configuration
    logging.handlers — Logging handlers
    getpass — Portable password input
    curses — Terminal handling for character-cell displays
    curses.textpad — Text input widget for curses programs
    curses.ascii — Utilities for ASCII characters
    curses.panel — A panel stack extension for curses
    platform — Access to underlying platform’s identifying data
    errno — Standard errno system symbols
    ctypes — A foreign function library for Python

可选的操作系统服务:

    select — Waiting for I/O completion
    threading — Higher-level threading interface
    thread — Multiple threads of control
    dummy_threading — Drop-in replacement for the threading module
    dummy_thread — Drop-in replacement for the thread module
    multiprocessing — Process-based “threading” interface
    mmap — Memory-mapped file support
    readline — GNU readline interface
    rlcompleter — Completion function for GNU readline
进程间通信和网络:

    subprocess — Subprocess management
    socket — Low-level networking interface
    ssl — TLS/SSL wrapper for socket objects
    signal — Set handlers for asynchronous events
    popen2 — Subprocesses with accessible I/O streams
    asyncore — Asynchronous socket handler
    asynchat — Asynchronous socket command/response handler
互联网数据处理:

    email — An email and MIME handling package
    json — JSON encoder and decoder
    mailcap — Mailcap file handling
    mailbox — Manipulate mailboxes in various formats
    mhlib — Access to MH mailboxes
    mimetools — Tools for parsing MIME messages
    mimetypes — Map filenames to MIME types
    MimeWriter — Generic MIME file writer
    mimify — MIME processing of mail messages
    multifile — Support for files containing distinct parts
    rfc822 — Parse RFC 2822 mail headers
    base64 — RFC 3548: Base16, Base32, Base64 Data Encodings
    binhex — Encode and decode binhex4 files
    binascii — Convert between binary and ASCII
    quopri — Encode and decode MIME quoted-printable data
    uu — Encode and decode uuencode files
结构化标记处理工具:

    HTMLParser — Simple HTML and XHTML parser
    sgmllib — Simple SGML parser
    htmllib — A parser for HTML documents
    htmlentitydefs — Definitions of HTML general entities
    XML Processing Modules
    XML vulnerabilities
    xml.etree.ElementTree — The ElementTree XML API
    xml.dom — The Document Object Model API
    xml.dom.minidom — Minimal DOM implementation
    xml.dom.pulldom — Support for building partial DOM trees
    xml.sax — Support for SAX2 parsers
    xml.sax.handler — Base classes for SAX handlers
    xml.sax.saxutils — SAX Utilities
    xml.sax.xmlreader — Interface for XML parsers
    xml.parsers.expat — Fast XML parsing using Expat
互联网协议和技术支持:

    webbrowser — Convenient Web-browser controller
    cgi — Common Gateway Interface support
    cgitb — Traceback manager for CGI scripts
    wsgiref — WSGI Utilities and Reference Implementation
    urllib — Open arbitrary resources by URL
    urllib2 — extensible library for opening URLs
    httplib — HTTP protocol client
    ftplib — FTP protocol client
    poplib — POP3 protocol client
    imaplib — IMAP4 protocol client
    nntplib — NNTP protocol client
    smtplib — SMTP protocol client
    smtpd — SMTP Server
    telnetlib — Telnet client
    uuid — UUID objects according to RFC 4122
    urlparse — Parse URLs into components
    SocketServer — A framework for network servers
    BaseHTTPServer — Basic HTTP server
    SimpleHTTPServer — Simple HTTP request handler
    CGIHTTPServer — CGI-capable HTTP request handler
    cookielib — Cookie handling for HTTP clients
    Cookie — HTTP state management
    xmlrpclib — XML-RPC client access
    SimpleXMLRPCServer — Basic XML-RPC server
    DocXMLRPCServer — Self-documenting XML-RPC server

第三方常用的50个库
Python: 50 modules for all needs


Graphical interface     wxPython     http://wxpython.org    
Graphical interface     pyGtk     http://www.pygtk.org    
Graphical interface     pyQT     http://www.riverbankcomputing.co.uk/pyqt/    
Graphical interface     Pmw     http://pmw.sourceforge.net/    
Graphical interface     Tkinter 3000     http://effbot.org/zone/wck.htm    
Graphical interface     Tix     http://tix.sourceforge.net/    
           
Database     MySQLdb     http://sourceforge.net/projects/mysql-python    
Database     PyGreSQL     http://www.pygresql.org/    
Database     Gadfly     http://gadfly.sourceforge.net/    
Database     SQLAlchemy     http://www.sqlalchemy.org/    
Database     psycopg     http://www.initd.org/pub/software/psycopg/    
Database     kinterbasdb     http://kinterbasdb.sourceforge.net/    
Database     cx_Oracle     http://www.cxtools.net/default.aspx?nav=downloads    
Database     pySQLite     http://initd.org/tracker/pysqlite    
           
MSN Messenger     msnlib     http://auriga.wearlab.de/~alb/msnlib/    
MSN Messenger     pymsn     http://telepathy.freedesktop.org/wiki/Pymsn    
MSN Messenger     msnp     http://msnp.sourceforge.net/    
Network     Twisted     http://twistedmatrix.com/    
Images     PIL     http://www.pythonware.com/products/pil/    
Images     gdmodule     http://newcenturycomputers.net/projects/gdmodule.html    
Images     VideoCapture     http://videocapture.sourceforge.net/    
           
Sciences and Maths     scipy     http://www.scipy.org/    
Sciences and Maths     NumPy     http://numpy.scipy.org//    
Sciences and Maths     numarray     http://www.stsci.edu/resources/software_hardware/numarray    
Sciences and Maths     matplotlib     http://matplotlib.sourceforge.net/    
           
Games     Pygame     http://www.pygame.org/news.html    
Games     Pyglet     http://www.pyglet.org/    
Games     PySoy     http://www.pysoy.org/    
Games     pyOpenGL     http://pyopengl.sourceforge.net/    
           
Jabber     jabberpy     http://jabberpy.sourceforge.net/    
           
Web     scrape     http://zesty.ca/python/scrape.html    
Web     Beautiful Soup     http://crummy.com/software/BeautifulSoup    
Web     pythonweb     http://www.pythonweb.org/    
Web     mechanize     http://wwwsearch.sourceforge.net/mechanize/    
           
Localisation     geoname.py     http://www.zindep.com/blog-zindep/Geoname-python/    
           
Serial port     pySerial     http://pyserial.sourceforge.net/    
Serial port     USPP     http://ibarona.googlepages.com/uspp    
           
Parallel Port     pyParallel     http://pyserial.sourceforge.net/pyparallel.html    
           
USB Port     pyUSB     http://bleyer.org/pyusb/    
           
Windows     ctypes     http://starship.python.net/crew/theller/ctypes/    
Windows     pywin32     http://sourceforge.net/projects/pywin32/    
Windows     pywinauto     http://www.openqa.org/pywinauto/    
Windows     pyrtf     http://pyrtf.sourceforge.net/    
Windows     wmi     http://timgolden.me.uk/python/wmi.html    
           
PDA/GSM/Mobiles     pymo     http://www.awaretek.com/pymo.html    
PDA/GSM/Mobiles     pyS60     http://sourceforge.net/projects/pys60    
           
Sound     pySoundic     http://pysonic.sourceforge.net/    
Sound     pyMedia     http://pymedia.org/    
Sound     FMOD     http://www.fmod.org/    
Sound     pyMIDI     http://www.cs.unc.edu/Research/assist/developer.shtml    
           
GMail     libgmail     http://libgmail.sourceforge.net/    
Google     pyGoogle     http://pygoogle.sourceforge.net/    
Expect     pyExpect     http://pexpect.sourceforge.net/    
WordNet     pyWordNet     http://osteele.com/projects/pywordnet/    
Command line     cmd     http://blog.doughellmann.com/2008/05/pymotw-cmd.html    
Compiler backend     llvm-py     http://mdevan.nfshost.com/llvm-py/    
3D     VPython     http://vpython.org


© 著作权归作者所有

黄哥Python培训
粉丝 39
博文 21
码字总数 14219
作品 0
海淀
私信 提问
加载中

评论(1)

筱龙缘
筱龙缘
黄哥?
总结五:Linux文件系统之层次结构及目录管理命令

总结五:Linux文件系统之层次结构及目录管理命令 1、FHS:(Filesystem Hierarchy Standard)--文件系统层次结构标准 /bin,/sbin:系统自身启动和运行时可能会用到的核心二进制命令 /lib:共享...

hironepiece
2018/06/26
0
0
c#winform开发启示录(创世纪新篇)

c#winform可以实现许多软件项目,包括webbrowser等等。 c#语言包括许多开发框架,如Winform开发框架、WCF开发框架、混合式开发框架,以及相关的模块,包括权限管理、字典管理模块、附件管理、...

crossmix
2015/10/29
69
0
Winform开发框架重构总结

最近一直致力于Winform开发框架的重构工作,因为发现要维护传统Winform开发框架、WCF开发框架、混合式开发框架,以及相关的模块,包括权限管理、字典管理模块、附件管理、人员管理等一些辅助...

walb呀
2017/12/04
0
0
Java 工具类--Java xutils

背景 作为一个Java开发者,在开发的过程中,总有一些代码是经常要用到的。有些可能是一些第三方JAR,但是总有一部分是我们自己造的轮子,而且自己造的用起来也比较顺畅,这个工具类就是这么而...

徐安是个好人
2017/07/31
1K
1
两年ios开发经验 面试经历 坎坷,请大牛们指点一下

最近面试了好几家公司,想说一下我的面试经历,也请大家帮我分析一下。 我在原来的公司干了两年,也算有两年的工作经验了,一直开发一个app,功能很多,虽不敢说是技术大牛,但是也不差,可是...

任我飞啊000
2014/06/06
3K
8

没有更多内容

加载失败,请刷新页面

加载更多

rime设置为默认简体

转载 https://github.com/ModerRAS/ModerRAS.github.io/blob/master/_posts/2018-11-07-rime%E8%AE%BE%E7%BD%AE%E4%B8%BA%E9%BB%98%E8%AE%A4%E7%AE%80%E4%BD%93.md 写在开始 我的Arch Linux上......

zhenruyan
今天
5
0
简述TCP的流量控制与拥塞控制

1. TCP流量控制 流量控制就是让发送方的发送速率不要太快,要让接收方来的及接收。 原理是通过确认报文中窗口字段来控制发送方的发送速率,发送方的发送窗口大小不能超过接收方给出窗口大小。...

鏡花水月
今天
10
0
OSChina 周日乱弹 —— 别问,问就是没空

Osc乱弹歌单(2019)请戳(这里) 【今日歌曲】 @tom_tdhzz :#今日歌曲推荐# 分享容祖儿/彭羚的单曲《心淡》: 《心淡》- 容祖儿/彭羚 手机党少年们想听歌,请使劲儿戳(这里) @wqp0010 :周...

小小编辑
今天
1K
11
golang微服务框架go-micro 入门笔记2.1 micro工具之micro api

micro api micro 功能非常强大,本文将详细阐述micro api 命令行的功能 重要的事情说3次 本文全部代码https://idea.techidea8.com/open/idea.shtml?id=6 本文全部代码https://idea.techidea8....

非正式解决方案
今天
5
0
Spring Context 你真的懂了吗

今天介绍一下大家常见的一个单词 context 应该怎么去理解,正确的理解它有助于我们学习 spring 以及计算机系统中的其他知识。 1. context 是什么 我们经常在编程中见到 context 这个单词,当...

Java知其所以然
昨天
9
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部