扯淡
首先說明下,這篇文章篇幅過長並且大部分是鏈接,因此非常適合在電腦端打開訪問。
本文內容摘自 Github 上有名的 Awesome Python。這是由 vinta 在 14 年發起並持續維護的一個項目。
Awesome Python 涵蓋了 Python 的方方面面,主要有 Web框架、網絡爬蟲、網絡內容提取、模板引擎、數據庫、圖片處理、數據可視化、文本處理、自然語言處理、機器學習、日志、代碼分析等。學會這些庫,保證你在 Python 方面會有質的飛躍。
以下內容是我基於 Awesome Python 和部分中文文檔做出的翻譯和歸納,由於內容過多,這篇只是歸納的第一部分,后續會持續更新。每個條目由 庫名 + 裝逼名言 + 鏈接 組成。
管理面板 ( Admin Panels)
Admin 面板的開源庫
-
Ajenti - 你的服務器應該擁有的管理面板
https://github.com/ajenti/ajenti
-
django-suit - Django管理面板的替代品(非營利組織可免費使用)
http://djangosuit.com/
-
django-xadmin - 擁有很多不錯功能的 Django Admin 替代品
https://github.com/sshwsfc/xadmin
-
flask-admin - 一個簡單可擴展的 Flask 管理界面框架
https://github.com/flask-admin/flask-admin
-
flower - 一個 Celery 集群的實時監控和網頁管理工具
https://github.com/mher/flower
-
Grappelli - Django 管理面板的一個非常騷氣的皮膚
http://grappelliproject.com/
-
Wooey - Django的一個應用,可為 Python 腳本自動創建網頁 UI
https://github.com/wooey/wooey
算法和設計模式 (Algorithms and Design Patterns)
Python 實現的一些算法和設計模式
-
algorithms - 一個 Python 的算法模塊
https://github.com/nryoung/algorithms
-
PyPattyrn - 一個實現了常見設計模式的簡單且有效的 Python 庫
https://github.com/tylerlaberge/PyPattyrn
-
python-patterns - Python 設計模式的匯總
https://github.com/faif/python-patterns
-
sortedcontainers - 高效的,純 Python 實現的 SortedList、SortedDict 和 SortedSet 類型。
http://www.grantjenks.com/docs/sortedcontainers/
反垃圾技術 ( Anti-spam )
一些與垃圾郵件對抗的庫
-
django-simple-captcha - 一個簡單、高效、可定制的 Django App,可以給任意 Django 表單添加驗證碼
https://github.com/mbi/django-simple-captcha
-
django-simple-span-blocker - 簡單的垃圾郵件屏蔽組件
https://github.com/moqada/django-simple-spam-blocker
資源管理器 ( Asset Management )
管理、壓縮、減小網站資源的工具
-
django-compressor - 壓縮鏈接和內聯的 JavaScript 或者 CSS 到單獨的緩存文件中
https://github.com/django-compressor/django-compressor
-
django-pipeline - Django 的資源打包庫
https://github.com/jazzband/django-pipeline
-
django-storages - Django 的自定義存儲后端的工具集合
https://github.com/jschneier/django-storages
-
fanstatic - 打包、優化並且將靜態文件依賴作為 Python 的包來提供
http://www.fanstatic.org/en/latest/
-
fileconveyor - 用於檢測和同步文件到 CDN、S3 和 FTP 的守護程序
http://wimleers.com/fileconveyor
-
flask-assets - 可以幫助你將網頁資源集成到 Flask App 中
https://github.com/miracle2k/flask-assets
-
jinja-assets-compressor - 一個 Jinja 的擴展程序,用來編譯和壓縮你的資源
https://github.com/jaysonsantos/jinja-assets-compressor
-
webassets - 對你的靜態資源進行打包、壓縮、管理,並生成獨一無二的緩存 URL
https://github.com/miracle2k/webassets
音頻 ( Audio )
一些用來控制音頻的庫
-
audiolazy - Python 的 DSP (數字信號處理) 包
https://github.com/danilobellini/audiolazy
-
audioread - 交叉庫(GStreamer + Core Audio + MAD + FFmpeg)音頻解碼
https://github.com/beetbox/audioread
-
beets - 一個音樂庫管理工具以及 MusciBrainz 標簽添加工具
http://beets.io/
-
ncmbot - 網易雲音樂的 Python Api 庫
http://xiyoumc.0x2048.com/ncmbot
-
dejavu - 音頻指紋提取和識別
https://github.com/worldveil/dejavu
-
eyeD3- 一個用來操作音頻文件的工具,包含 ID3 元文件的 MP3 文件
http://eyed3.nicfit.net/
-
id3reader - 一個用來讀取 MP3 原始數據的 Python 庫
https://nedbatchelder.com/code/modules/id3reader.py
-
m3u8 - 一個用來解析 m3u8 文件的模塊
https://github.com/globocom/m3u8
-
mingus - 一個高級的音樂理論和曲譜包,支持 MIDI 文件和回訪功能
http://bspaans.github.io/python-mingus/
-
mutagen - 一個用來處理音頻原始數據的 Python 組件
https://github.com/quodlibet/mutagen
-
pyAudioAnalysis- Python 的音頻分析庫,包含:特征提取、分類、分段和應用
https://github.com/tyiannak/pyAudioAnalysis
-
pydub - 通過簡單、高 Level 的接口來操作音頻文件
https://github.com/jiaaro/pydub
-
pyechonest - Echo Nest API 的 Python 客戶端
https://github.com/echonest/pyechonest
-
talkbox- 一個用來處理語音和信號的 Python 庫
http://scikits.appspot.com/talkbox
-
TimeSide - 開源的 Web 音頻處理框架
https://github.com/Parisson/TimeSide
-
tinytag - 一個用來讀取 mp3 、ogg、flac 以及 Wave 文件原始數據的庫。
https://github.com/devsnd/tinytag
授權
一些實現授權方案的庫
OAuth
-
Authomatic - 簡單但強大的框架,可以用來做身份驗證和授權
http://peterhudec.github.io/authomatic/
-
django-allauth - Django 的 授權程序
https://github.com/pennersr/django-allauth
-
django-oauth-toolkit - Django 開發者的禮物, OAuth 2
https://github.com/evonove/django-oauth-toolkit
-
Flask-OAuthlib - 供 Flask 使用的 OAuth 1.0/a 和 2.0 的客戶端實現
https://github.com/lepture/flask-oauthlib
-
OAuthLib - 通用且完整的 OAuth 請求和簽名邏輯
https://github.com/idan/oauthlib
-
python-oauth2- 一個完全測試的抽象接口,用來創建 OAuth 客戶端和服務端
https://github.com/joestump/python-oauth2
-
python-social-auth - 一個簡單設置的通用化驗證方式
https://github.com/omab/python-social-auth
-
rauth - OAuth 1.0/a 、2.0 和 Ofly 的 Python 庫
https://github.com/omab/python-social-auth
-
sanction - 一個炒雞簡單的 OAuth2 客戶端的實現
https://github.com/demianbrecht/sanction
Others
-
jose - 針對 JavaScript 對象簽名和加密的草稿
https://github.com/demonware/jose
-
PyJWT - JSON Web 令牌草稿的實現01
https://github.com/jpadilla/pyjwt
-
python-jws - JSON Web 簽名草稿的實現02
https://github.com/brianloveswords/python-jws
-
python-jwt - 一個用來生成和驗證 JSON Web Token 的模塊
https://github.com/davedoesdev/python-jwt
構建工具
將源代碼編譯為軟件
-
BitBake - 類似於 Linux 的 make-file 的構建工具
http://www.yoctoproject.org/docs/1.6/bitbake-user-manual/bitbake-user-manual.html
-
buildout - 從多個組件來創建、組裝和部署應用的構建系統
http://www.buildout.org/en/latest/
-
PlatformIO - 多平台構建工具
https://github.com/platformio/platformio-core
-
PyBuilder - 純 Python 的可持續化構建工具
https://github.com/pybuilder/pybuilder
-
SCons - 軟件構建工具
http://www.scons.org/
CMS
內存管理系統
-
django-cms - 一個基於 Django 的開源、企業級的 CMS 系統
https://www.django-cms.org/en/
-
djedi-cms - 一個輕量級且非常強大的 Django CMS,考慮到了插件、內聯編輯以及性能
http://djedi-cms.org/
-
FeinCMS - 基於 Django 構建的最高級的內容管理系統之一。
http://www.feincms.org/
-
Kotti - 基於Pyramid 的高 Level 、Pythonic 的 Web 應用框架
http://kotti.pylonsproject.org/
-
Mezzanine - 一個強大的、可持續的、靈活的內容管理平台
http://mezzanine.jupo.org/
-
Opps - 一個基於 Django 為雜志、報紙網站以及大流量門戶網站所設計的 CMS 平台
http://opps.github.io/opps/
-
Plone - 一個構建於開源應用服務器 Zope 之上的 CMS 平台
https://plone.org/
-
Quokka - 基於 Flask 和 MongoDB 的靈活、可擴展的小型 CMS
http://quokkaproject.org/
-
Wagtail - 一個 Django 內容管理系統
https://wagtail.io/
-
Widgy - 基於 Django 的最新 CMS 框架
http://mezzanine.jupo.org/
Caching
緩存數據的庫
-
Beaker - 一個應用在 Web 程序、獨立的Python 腳本和應用程序的緩存和會話庫
https://github.com/bbangert/beaker
-
DiskCache - SQLite 和文件支持的緩存后端,具有比 memcached 和 redis 更快的查找
http://www.grantjenks.com/docs/diskcache/
-
django-cache-machine - Django 模塊的自動化緩存和時效
https://github.com/django-cache-machine/django-cache-machine
-
django-cacheops - 具有自動粒度時間驅動失效的 ORM 緩存
https://github.com/Suor/django-cacheops
-
django-viewlet - 具有緩存控制功能的渲染模板組件
https://github.com/5monkeys/django-viewlet
-
dogpile.cache - 這是 Beaker 的下一代替代品,由同一作者開發
http://dogpilecache.readthedocs.io/en/latest/
-
HermesCache - Python 緩存庫,具有基於標簽的失效和 dogpile effect 保護功能
https://pypi.python.org/pypi/HermesCache
-
johnny-cache - Django 應用的一個緩存框架
https://github.com/jmoiron/johnny-cache
-
pylibmc - libmemcached 接口的 Python 封裝
https://github.com/lericson/pylibmc
ChatOps Tools
用於開發聊天機器人的庫
-
Errbot - 用來實現自動聊天工具的,最簡單、最流行的聊天機器人
http://errbot.io/en/latest/
Code Analysis and Linter
進行代碼分析、解析和操作代碼庫的組件和工具
代碼分析
-
coala - 語言獨立並且易擴展的代碼分析應用
http://coala.io/
-
code2flow - 將你的 Python 和 JavaScript 代碼轉換為 DOT(流程圖)的工具
https://github.com/scottrogowski/code2flow
-
pycallgraph - 這個庫可以將你的 Python 應用的調用圖進行可視化
https://github.com/gak/pycallgraph
-
pysonar2 - Python 的類型推斷和檢索工具
https://github.com/yinwang0/pysonar2
Linter 工具
-
Flake8 - 模塊化源代碼檢索工具:pep8、pyflakes 以及 co
https://pypi.python.org/pypi/flake8
-
pylama - Pyhton 和 JavaScript 的代碼審查工具
https://github.com/scottrogowski/code2flow
-
Pylint - 一個完整的可定制的源代碼分析工具
https://www.pylint.org/