Python 库列表
跳转到导航
跳转到搜索
Python 2, 3
TODO
重新分类整理
- greenlet —— Lightweight in-process concurrent programming.
参见主条目greenlet。
参见主条目pyPdf。
- dateutil —— 日期处理
系统
- setproctitle 设置程序名
- procname 另一个设置程序名的库,对 pgrep 无效。仅 Python 2。
- psutil - A cross-platform process and system utilities module for Python
- PSI - Python System Information (不支持 Windows)
- amoffat/sh, Python subprocess interface.
参见主条目python-sh。
- kennethreitz/envoy, Python Subprocesses for Humans™
用户界面
- urwid 文本用户界面
参见主条目urwid。
- kennethreitz/clint, Python Command-line Application Tools. 包含终端高亮、缩进、配置文件管理等功能
网络
- pyzmail — Python easy mail library
- PySocks: socks 代理
HTTP
- http-parser, HTTP request/response parser for python in C. 部分使用 Cython 编写,支持相当底层的操作,可在数据到达时逐步解析。
服务端
- bottle, one-file Web Framework
- Tornado Web Server, 异步网络框架 + Web 支持
参见主条目Tornado。
客户端
- httplib2, 一个 HTTP 库
- Requests: HTTP for Humans, 支持连接管理的友好的 HTTP 客户端
参见主条目Python Requests。
- urllib3 Documentation. Requests 底层所使用的 HTTP 库
XMPP
- Jajcus/pyxmpp2 · GitHub, 异步的 XMPP 库
参见主条目pyxmpp2。
FTP
SMTP
- Envelopes, Mailing for human beings.
DNS
- dnslib: A library to encode/decode DNS wire-format packets supporting both Python 2.7 and Python 3.2+. 解析 DNS 数据包,不进行网络操作。
- dnspython, DNS 解析等
数学和科学计算
- numpy
- scipy
- pandas
- matplotlib
- sage (仅限 Python 2)
- 用guiqwt制作实时波形绘图程序
- Iodideα lets you do data science entirely in your browser. (try)
数据存储
- blist: an asymptotically faster list-like type for Python
- Python "bindings" for Oracle Berkeley DB,文档
- [MySQL Connector/Python], MySQL 官方连接库,纯 Python 实现
- psycopg2,连接到 PostgreSQL
- xlrd、xlrd3:Microsoft Excel 文档处理
- Python TDS ( Tabular Data Stream ) SQL Database Client for Microsoft SQL Server and Sybase ASE,商业软件。演示版 limited to 10 concurrent connections and returns 1000 rows per result.
- Microfiber = Python3 + CouchDB, Python 3 的 CouchDB 模块
- configobj: 支持注释的 ini 解析器
数据处理、分析与展示
- goose, Html Content / Article Extractor, web scrapping lib in Python
- pyHeatMap:使用Python绘制热图的库 :: oldj.net
- diagram, Text mode diagrams using UTF-8 characters and fancy colors
- pandas
- Altair: Declarative Visualization in Python
- mkaz/termgraph: a python command-line tool which draws basic graphs in the terminal
- EVōC: Embedding Vector Oriented Clustering — EVoC 0.1.0 documentation
二进制数据处理
- Construct, a powerful declarative parser (and builder) for binary data.
- pefile - pefile is a Python module to read and work with PE (Portable Executable) files - Google Project Hosting
文本处理
- Pygments, 代码语法高亮
参见主条目pygments。
参见主条目autopep8。
参见主条目Python regex。
- FuzzyWuzzy: Fuzzy String Matching in Python | SeatGeek Blog
- Parsley, 词法解析(Python 2)
- tobie/ua-parser, multi-language port of Browserscope's user agent parser. 浏览器 UserAgent 解析。
- python-sqlparse: a non-validating SQL parser for Python
字符编码检测
- chardet已失效,存档
- cchardet 相对于 chardet 更偏向于俄语
- charade 是 requests 使用的。相对于 cchardet 对 GBK 编码要好一些,但是依然不如 chardet 准确。
语种识别
字符与语言数据
- zhon, constants used in Chinese text processing. 用于中文的各种正则表达式数据,包括汉字、拼音、注音、部首等。
- Pyphen - Hyphenation in pure Python
- python-romkan: A Romaji/Kana conversion library for Python
结构化数据
日期与时间
电话号码
- daviddrysdale/python-phonenumbers, Python port of Google's libphonenumber.
加密与安全
- python-bcrypt, a update-to-date fork of py-bcrypt, the OpenBSD Blowfish password hashing algorithm
多媒体
图像处理
- Pillow 是一个 PIL 的 fork
参见主条目Pillow。
- svgwrite: A Python library to create SVG drawings.
- Wand is a ctypes-based simple ImageMagick binding for Python.
音频处理
- stagger, an ID3v1/ID3v2 tag manipulation package written in pure Python 3.
参见主条目stagger。
与其它程序交互
- pygit2,基于 libgit2 的封装
- GitPython,git 命令的 wrapper
- Dulwich,git 文件格式和协议的纯Python实现(可选C扩展)
- pywinauto - Windows GUI automation using Python, swapy - Simple Windows Automation on Python
- kennethreitz/xerox, Copy + Paste for Python。支持三大主流平台。
与其它语言交互
FFI 接口
- CFFI documentation,提供和 LuaJIT 类似的 API
另见 Python ctypes。
与Lua相互调用
- Python Package Index : lupa 0.20。需要手工更改
setup.py中的cmd_output函数使其返回str - Lunatic Python - Labix(编译失败!)
不同版本间调用
- execnet —— rapid multi-Python deployment
外部链接
- WMI - Windows Management Instrumentation
- vinta/awesome-python, A curated list of awesome Python frameworks, libraries and software.
- Why I use attrs instead of pydantic