Synopses & Reviews
This second edition ofFoundations 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. 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 Introduction to Client/Server Networking UDP TCP Socket Names and DNS Network Data and Network Errors TLS and SSL Server Architecture Caches, Message Queues, and Map-Reduce HTTP Screen Scraping Web Applications E-mail Composition and Decoding SMTP POP IMAP Telnet and SSH FTP RPC
Synopsis
Introduction You have chosen an exciting moment in computing history to embark on a study of network programming. Machine room networks can carry data at speeds comparable to those at which machines access their own memory, and broadband now reaches hundreds of millions of homes worldwide. Many casual computer users spend their entire digital lives speaking exclusively to network services; they are only vaguely aware that their computer is even capable of running local applications. This is also a moment when, after 20 solid years of growth and improvement, interest in Python really seems to be taking off. This is different from the trajectory of other popular languages, many of which experience their heyday and go into decline long before the threshold of their third decade. The Python community is not only strong and growing, but its members seem to have a much better feel for the language itself than they did a decade ago. The advice we can share with new Python programmers about how to test, write, and structure applications is vastly more mature than what passed for Pythonic design a mere decade ago.
Synopsis
- Introduction to Client/Server Networking
- UDP
- TCP
- Socket Names and DNS
- Network Data and Network Errors
- TLS and SSL
- Server Architecture
- Caches, Message Queues, and Map-Reduce
- HTTP
- Screen Scraping
- Web Applications
- E-mail Composition and Decoding
- SMTP
- POP
- IMAP
- Telnet and SSH
- FTP
- RPC