Python开发常用的一些开源Package分享

yipeiwu_com7年前Python基础

一般安装完Python后,我会先装一些常用的Package。做个笔记,记录下来,以备查询:

Web FrameWorks

Tornado,访问:http://www.tornadoweb.org/en/stable/
Flask,访问:http://flask.pocoo.org/
Web.py,访问:http://webpy.org/

Tools

xlrd,Excel处理利器,访问:http://www.python-excel.org/
lxml,XML处理,访问:http://lxml.de/
configparser,ini文件解析,访问:https://docs.python.org/2/library/configparser.html
uuid,生成uuid,访问:https://docs.python.org/2/library/uuid.html
msgpack-python,类似JSON的一个数据序列化,访问:https://pypi.python.org/pypi/msgpack-python/
psutil,一个用于获得处理器和系统相关信息的模块,访问:https://github.com/giampaolo/psutil

Database

MySQL-Python,Mysql库,访问:http://mysql-python.sourceforge.net/
pymongo,MongoDB库,访问:https://pypi.python.org/pypi/pymongo/
redis,Redis库,访问:https://pypi.python.org/pypi/redis/
cxOracle,Oracle库,访问:https://pypi.python.org/pypi/cx_Oracle
SQLAlchemy,SQL工具包及对象关系映射(ORM)工具,访问:http://www.sqlalchemy.org/
peewee, SQL工具包及对象关系映射(ORM)工具,访问:https://pypi.python.org/pypi/peewee
torndb,Tornado原装DB,访问:https://github.com/bdarnell/torndb

Net

requests,最好用的http工具,访问:http://www.python-requests.org/
gevent,一个高并发的网络性能库,访问:http://www.gevent.org/
twisted,基于事件驱动的网络引擎框架。访问:https://twistedmatrix.com/trac/

System

sh,强大的系统系统管理神器,访问:https://pypi.python.org/pypi/sh

Date

Arrow,好用的时间处理库,访问:http://crsmithdev.com/arrow/
when.py,友好的时间日期库,访问:https://github.com/dirn/When.py

Image

PIL,Python Imaging Library,处理图像,很强大,访问:http://www.pythonware.com/products/pil/

Spider

PyQuery,解析网页,访问:https://pypi.python.org/pypi/pyquery
beautifulSoup,分析网页,访问:https://pypi.python.org/pypi/beautifulsoup4
Scrapy,著名的爬虫框架,访问:http://www.scrapy.org/

Other

Jinja2,模板引擎,https://pypi.python.org/pypi/Jinja2
virtualenv,Python虚拟环境,访问:https://pypi.python.org/pypi/virtualenv/

相关文章

python解析发往本机的数据包示例 (解析数据包)

tcp.py 复制代码 代码如下:# -*- coding: cp936 -*-import socketfrom struct import *from time import cti...

初学Python实用技巧两则

本文记录了初学Python常用的两则实用技巧,分享给大家供大家参考之用。具体如下: 1.可变参数 示例代码如下: >>> def powersum(power, *...

Python从零开始创建区块链

Python从零开始创建区块链

作者认为最快的学习区块链的方式是自己创建一个,本文就跟随作者用Python来创建一个区块链。 对数字货币的崛起感到新奇的我们,并且想知道其背后的技术——区块链是怎样实现的。 但是完全搞懂...

Python2.7 实现引入自己写的类方法

系统环境:win10 开发环境:JetBrains PyCharm 2017.1.5 x64 Python版本:2.7 假如我们有一个class叫DBUtil,它在A.py里(最好一...

Python利用scapy实现ARP欺骗的方法

Python利用scapy实现ARP欺骗的方法

一、实验原理。 本次用代码实现的是ARP网关欺骗,通过发送错误的网关映射关系导致局域网内其他主机无法正常路由。使用scapy中scapy.all模块的ARP、sendp、Ether等函...