Learning Python Network Programming (Paperback)
暫譯: 學習 Python 網路程式設計 (平裝本)

Dr. M. O. Faruque Sarker, Sam Washington

買這商品的人也買了...

相關主題

商品描述

Utilize Python 3 to get network applications up and running quickly and easily

About This Book

  • Leverage your Python programming skills to build powerful network applications
  • Explore steps to interact with a wide range of network services
  • Design multithreaded and event-driven architectures for echo and chat servers

Who This Book Is For

If you're a Python developer or a system administrator with Python experience and you're looking to take your first steps in network programming, then this book is for you. Basic knowledge of Python is assumed.

What You Will Learn

  • Develop an understanding of network stacks and the power of encapsulation
  • Design high-performance network server applications
  • Implement socket-based network applications using asynchronous models
  • Build client applications for major web APIs, including Amazon S3 and Twitter
  • Interact with e-mail servers using SMTP, POP3, and IMAP protocols
  • Deal with remote network servers using SSH, FTP, SNMP, SMB/CIFS, and LDAP protocols
  • Work with IP addresses including Geo-IP lookups
  • Download objects from the Web and craft custom HTTP requests with urllib and the Requests library

In Detail

Network programming has always been a demanding task. With full-featured and well documented libraries all the way up the stack, Python makes network programming the enjoyable experience it should be.

Starting with a walkthrough of today's major networking protocols, with this book you'll learn how to employ Python for network programming, how to request and retrieve web resources, and how to extract data in major formats over the Web. You'll utilize Python for e-mailing using different protocols and you'll interact with remote systems and IP and DNS networking.

As the book progresses, socket programming will be covered, followed by how to design servers and the pros and cons of multithreaded and event-driven architectures. You'll develop practical client-side applications, including web API clients, e-mail clients, SSH, and FTP. These applications will also be implemented through existing web application frameworks.

商品描述(中文翻譯)

利用 Python 3 快速輕鬆地啟動網路應用程式

關於本書


  • 利用您的 Python 程式設計技能來構建強大的網路應用程式

  • 探索與各種網路服務互動的步驟

  • 為回音和聊天伺服器設計多執行緒和事件驅動架構

本書適合誰

如果您是 Python 開發人員或具有 Python 經驗的系統管理員,並且希望在網路程式設計上邁出第一步,那麼本書適合您。假設您具備基本的 Python 知識。

您將學到什麼


  • 了解網路堆疊和封裝的力量

  • 設計高效能的網路伺服器應用程式

  • 使用非同步模型實現基於套接字的網路應用程式

  • 為主要的網路 API 構建客戶端應用程式,包括 Amazon S3 和 Twitter

  • 使用 SMTP、POP3 和 IMAP 協議與電子郵件伺服器互動

  • 使用 SSH、FTP、SNMP、SMB/CIFS 和 LDAP 協議處理遠端網路伺服器

  • 處理 IP 位址,包括地理 IP 查詢

  • 從網路下載物件,並使用 urllib 和 Requests 函式庫製作自訂的 HTTP 請求

詳細內容

網路程式設計一直是一項要求高的任務。隨著功能齊全且文檔完善的函式庫遍佈整個堆疊,Python 使網路程式設計成為應有的愉快體驗。

本書將從當今主要的網路協議開始,您將學習如何使用 Python 進行網路程式設計,如何請求和檢索網路資源,以及如何提取網路上的主要格式數據。您將利用 Python 進行電子郵件傳送,使用不同的協議,並與遠端系統及 IP 和 DNS 網路互動。

隨著書籍的進展,將涵蓋套接字程式設計,接著是如何設計伺服器以及多執行緒和事件驅動架構的優缺點。您將開發實用的客戶端應用程式,包括網路 API 客戶端、電子郵件客戶端、SSH 和 FTP。這些應用程式也將通過現有的網路應用程式框架實現。