python开源库推荐

环境管理

包管理

交互解释器

日期时间

  • arrow – Better dates & times for Python.

下载器

  • you-get – A YouTube/Youku/Niconico video downloader written in Python 3.
  • youtube-dl – A small command-line program to download videos from YouTube.

HTTP

  • requests – HTTP Requests for Humans™.
  • grequests – requests + gevent for asynchronous HTTP requests.

数据库驱动

Web 框架

模板语言

  • Jinja2 – A modern and designer friendly templating language.

队列

  • celery – An asynchronous task queue/job queue based on distributed message passing.

搜索

表单

  • WTForms – A flexible forms validation and rendering library.
  • WTForms-JSON – A WTForms extension for JSON data handling.

数据校验

  • Schematics – Data Structure Validation.
  • voluptuous – A Python data validation library. It is primarily intended for validating data coming into Python as JSON, YAML, etc.

管理面板

  • django-xadmin – Drop-in replacement of Django admin comes with lots of goodies.
  • flask-admin – Simple and extensible administrative interface framework for Flask.

并发和并行

  • multiprocessing – (Python standard library) Process-based threading interface.
  • threading – (Python standard library) Higher-level threading interface.
  • eventlet – Asynchronous framework with WSGI support.
  • gevent – A coroutine-based Python networking library that uses greenlet.

WSGI服务器

  • gunicorn – Pre-forked, partly written in C.

加密

  • PyCrypto – The Python Cryptography Toolkit.

日志

  • Raven – The Python client for Sentry.
  • Sentry – A realtime logging and aggregation server.

单元测试

  • nose – nose extends unittest.
  • faker – A Python package that generates fake data.

代码检查

  • Flake8 – The modular source code checker: pep8, pyflakes and co.
  • Pylint – A Fully customizable source code analyzer.

数据可视化

算法和设计模式

说明

这篇推荐文章里面提及的项目大部分来源于 github 上的 awesome-python项目,但是,本文提及的项目都是本人使用过或者对比过后觉得好用的推荐,awesome- python 中的推荐较多,可能会让人难以选择,所以我将我觉得好用的抽离出来推荐给大家,并且不断持续更新。

希望对大家有帮助,同时,我的博客中也会写一些这些项目的使用的指导,或阅读这些项目代码的解析。大家也可以指点一下是否正确。