Modern Python Standard Library Cookbook

Alessandro Molina

  • 出版商: Packt Publishing
  • 出版日期: 2018-08-31
  • 售價: $2,170
  • 貴賓價: 9.5$2,062
  • 語言: 英文
  • 頁數: 366
  • 裝訂: Paperback
  • ISBN: 1788830822
  • ISBN-13: 9781788830829
  • 相關分類: Python程式語言
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Build optimized applications in Python by learning how to smartly implement the standard libraries

Key Features

  • Strategic recipes for effective Python development using the standard libraries
  • Cutting edge techniques to yield high performance from applications
  • Best practices for developing readily scalable production-ready applications

Book Description

Python 3's Standard Library is an ocean of modules that developers can use for various kinds of application development. Given the exhaustive list of libraries, how do you choose the best one to solve your programming needs? This book will show you how you can address specific programming problems in Python using the standard libraries effectively.

The book begins with recipes on containers and data structures and how to perform effective text management in Python. You will find recipes for command line operations, networking, file systems and directories, and concurrent execution. You will learn about security essentials in Python and various development tools for debugging, benchmarking, inspection, error reporting, code evacuation, and tracing. The book covers recipes on graphical user interfaces, multimedia, date and time, and mathematical functions and algorithms.

By the end of the book you will have acquired the skills to write clean codes in Python that meets your team's expectations.

What you will learn

  • Store multiple values per key in associative containers
  • Create interactive character based user interfaces
  • Working with native time and displaying data according to your timezone
  • Read/write SGML family languages, both as a SAX and DOM parser to suite various needs and file sizes
  • Group equivalent items using Itertools and sorted features together
  • Use partials to create unary functions out of multi-arguments functions
  • Implement hashing algorithms to store passwords in a safe way

Who This Book Is For

This book is well suited for a developer who wants to write highly responsive, manageable, scalable, and resilient code in Python. Prior programming knowledge in Python is expected to make the most out of the book.

商品描述(中文翻譯)

建立優化的 Python 應用程式,學習如何智慧地實現標準庫

主要特點
- 使用標準庫進行有效 Python 開發的策略性配方
- 前沿技術以提高應用程式的性能
- 開發可輕鬆擴展的生產就緒應用程式的最佳實踐

書籍描述
Python 3 的標準庫是一個模組的海洋,開發者可以用來進行各種應用程式開發。面對這份詳盡的庫清單,您該如何選擇最佳的庫來解決您的程式需求?本書將向您展示如何有效地使用標準庫來解決 Python 中的特定程式問題。

本書以容器和數據結構的配方開始,並介紹如何在 Python 中進行有效的文本管理。您將找到有關命令行操作、網絡、文件系統和目錄以及並發執行的配方。您將學習 Python 中的安全基本知識以及各種開發工具,用於調試、基準測試、檢查、錯誤報告、代碼撤回和追蹤。本書涵蓋了圖形用戶界面、多媒體、日期和時間以及數學函數和算法的配方。

在本書結束時,您將掌握編寫符合團隊期望的乾淨 Python 代碼的技能。

您將學到的內容
- 在關聯容器中為每個鍵存儲多個值
- 創建基於字符的互動用戶界面
- 使用本地時間並根據您的時區顯示數據
- 讀取/寫入 SGML 家族語言,作為 SAX 和 DOM 解析器以滿足各種需求和文件大小
- 使用 Itertools 和 sorted 特性將等效項目分組
- 使用 partials 將多參數函數轉換為一元函數
- 實現哈希算法以安全地存儲密碼

本書適合對象
本書非常適合希望在 Python 中編寫高度響應、可管理、可擴展和韌性代碼的開發者。建議具備 Python 的先前程式知識,以便充分利用本書。