Foundations of Python Network Programming, 2nd Edition

0
(0)

Foundations of Python Network Programming, 2nd Edition
 

  • Author:Brandon RhodesJohn Goerzen
  • Length: 368 pages
  • Edition: 2
  • Publisher: Apress
  • Publication Date: 2010-12-21
  • ISBN-10: 1430230037
  • ISBN-13: 9781430230038
  • Sales Rank: #1470260 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    This second edition of Foundations of Python Network Programming targets Python 2.5 through Python 2.7, the most popular production versions of the language. Python has made great strides since Apress released the first edition of this book back in the days of Python 2.3. The advances required new chapters to be written from the ground up, and others to be extensively revised.

    You will learn fundamentals like IP, TCP, DNS and SSL by using working Python programs; you will also be able to familiarize yourself with infrastructure components like memcached and message queues. You can also delve into network server designs, and compare threaded approaches with asynchronous event-based solutions.

    But the biggest change is this edition’s expanded treatment of the web. The HTTP protocol is covered in extensive detail, with each feature accompanied by sample Python code. You can use your HTTP protocol expertise by studying an entire chapter on screen scraping and you can then test lxml and BeautifulSoup against a real-world web site. The chapter on web application programming now covers both the WSGI standard for component interoperability, as well as modern web frameworks like Django.

    Finally, all of the old favorites from the first edition are back: E-mail protocols like SMTP, POP, and IMAP get full treatment, as does XML-RPC. You can still learn how to code Python network programs using the Telnet and FTP protocols, but you are likely to appreciate the power of more modern alternatives like the paramiko SSH2 library. If you are a Python programmer who needs to learn the network, this is the book that you want by your side.

    What you’ll learn

    • Understand low level networking
    • Handle sending and receiving email including composing and decoding emails, SMTP, POP and IMAP
    • Program the lower levels of web application programming such as FastCGI and WSGI and HTTP itself
    • Learn how to use memcached and message qeues using Python
    • Access web services using Python
    • Master multitasking with threads, forking, and asynchronous communication

    Who this book is for

    This book will be of interest to python programmers who need to program networked applications using Python. From web application developers, to systems integrators, to system administrators—this book has everything you need to know.

    Table of Contents

    1. Introduction to Client/Server Networking
    2. UDP
    3. TCP
    4. Socket Names and DNS
    5. Network Data and Network Errors
    6. TLS and SSL
    7. Server Architecture
    8. Caches, Message Queues, and Map-Reduce
    9. HTTP
    10. Screen Scraping
    11. Web Applications
    12. E-mail Composition and Decoding
    13. SMTP
    14. POP
    15. IMAP
    16. Telnet and SSH
    17. FTP
    18. RPC

    中文:

    书名:Foundations of Python Network Programming, 2nd Edition

    这是第二版 Python网络编程基础 目标是从该语言最流行的生产版本–Python2.5到Python2.7。自从Apress发布了这本书的第一版以来,Python已经取得了长足的进步,这要追溯到Python2.3。这些进步需要从头写下新的篇章,其他章节需要广泛修改。

    您将通过使用实用的Python程序学习IP、TCP、DNS和SSL等基础知识;您还将能够熟悉Memcached和消息队列等基础设施组件。您还可以深入研究网络服务器设计,并将线程化方法与基于事件的异步解决方案进行比较。

    但最大的变化是本版扩大了对网络的处理。本文详细介绍了HTTP协议,每个功能都附带了样例Python代码。您可以通过学习关于屏幕抓取的整个章节来使用您的HTTP协议专业知识,然后您可以在真实的Web站点上测试lxml和BeautifulSoup。关于Web应用程序编程的章节现在既涵盖了组件互操作性的WSGI标准,也涵盖了Django等现代Web框架。

    最后,第一版中所有受欢迎的旧协议都回来了:SMTP、POP和IMAP等电子邮件协议得到了全面的处理,XML-RPC也是如此。您仍然可以学习如何使用Telnet和FTP协议编写Python网络程序,但您可能会体会到更现代的替代方案的强大功能,比如paramiko SSH2库。如果你是一名需要学习网络的Python程序员,这本书就是你想要的身边的书。

    What you’ll learn

    • 了解低级网络
    • 处理电子邮件的发送和接收,包括撰写和解码电子邮件、SMTP、POP和IMAP
    • 编写较低级别的Web应用程序编程,如FastCGI和WSGI以及HTTP本身
    • 了解如何通过Python使用Memcached和Message Queue
    • 使用Python访问Web服务
    • 掌握线程、分叉和异步通信的多任务处理

    这本书是为谁而写的

    这本书将会引起那些需要使用Python编写网络应用程序的Python程序员的兴趣。从Web应用程序开发人员到系统集成商,再到系统管理员–本书包含了您需要了解的所有内容。

    目录表

    1. 客户/服务器网络简介
    2. UDP
    3. TCP
    4. 套接字名称和域名
    5. Network Data and Network Errors
    6. TLS和SSL
    7. 服务器架构
    8. 缓存、消息提示和地图缩减
    9. HTTP
    10. 屏幕抓取
    11. Web应用程序
    12. 电子邮件的撰写和解码
    13. SMTP
    14. POP
    15. IMAP
    16. Telnet和SSH
    17. FTP
    18. RPC
  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册