Learning Python Network Programming (Paperback)

Dr. M. O. Faruque Sarker, Sam Washington

  • 出版商: Packt Publishing
  • 出版日期: 2015-06-17
  • 定價: $1,650
  • 售價: 6.0$990
  • 語言: 英文
  • 頁數: 277
  • 裝訂: Paperback
  • ISBN: 1784396001
  • ISBN-13: 9781784396008
  • 相關分類: Python
  • 立即出貨(限量) (庫存=1)



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程式設計技巧建立強大的網路應用程式
- 探索與各種網路服務互動的步驟
- 設計多執行緒和事件驅動的架構,用於回音和聊天伺服器




- 瞭解網路堆疊和封裝的威力
- 設計高效能的網路伺服器應用程式
- 使用非同步模型實現基於套接字的網路應用程式
- 建立主要網路API的客戶端應用程式,包括Amazon S3和Twitter
- 使用SMTP、POP3和IMAP協議與電子郵件伺服器互動
- 使用SSH、FTP、SNMP、SMB/CIFS和LDAP協議與遠端網路伺服器互動
- 處理IP地址,包括地理IP查找
- 使用urllib和Requests庫從網路下載物件並製作自訂的HTTP請求