2020年10個不錯的Python庫

{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"italic"},{"type":"strong"}],"text":"本文最初發表於 Tryolabs 網站,經原作者 Alan Desoins 授權,InfoQ 中文站翻譯並分享。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"這是第六屆年度 Python 庫排行榜。這個排行榜的依據是什麼?規則很簡單。我們尋找的庫需要滿足下列條件:"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"numberedlist","attrs":{"start":1,"normalizeStart":1},"content":[{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":1,"align":null,"origin":null},"content":[{"type":"text","text":"它們是在 2020 年推出或普及的。"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":2,"align":null,"origin":null},"content":[{"type":"text","text":"它們從發佈後就一直有良好的維護。"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":3,"align":null,"origin":null},"content":[{"type":"text","text":"它們非常炫酷,很值得一看。"}]}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"免責聲明:今年,我們的選擇受到機器學習 \/ 數據科學庫的極大影響,雖然有些庫對非數據科學家來說確實很有用。另外,儘管我們有10 個主要的精選(以及一個獎勵),但我們還是決定增加一個新的“榮譽提名”部分,以便公平對待我們發現但又不能遺漏的其他庫。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"1.Typer"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.infoq.cn\/resource\/image\/f5\/3a\/f578a4562871ccb898f5c6c0ff7b1d3a.jpg","alt":null,"title":"","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"你不必總是要編寫 CLI 應用程序,但是在編寫 CLI 時,最好是無障礙的體驗。繼FastAPI巨大成功之後,Sebastián Ramírez用同樣的原則爲我們帶來了 Typer:一個新的庫,通過利用 Python 3.6+ 的類型提示功能,可以編寫命令行界面。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"這個設計確實使 "},{"type":"link","attrs":{"href":"https:\/\/github.com\/tiangolo\/typer","title":"","type":null},"content":[{"type":"text","text":"Typer"}]},{"type":"text","text":" 脫穎而出。除確保你的代碼被正確地記錄下來外,你還可以通過最少的努力來獲得一個帶有驗證的 CLI 接口。使用類型提示,你可以在Python 編輯器中獲得自動完成功能(比如VSCode),從而提高工作效率。"}]}]}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章