Over 70 detailed recipes to develop practical solutions for a wide range of realworld network programming tasksAbout This BookDemonstrates how to write various besopke client/server networking applications using standard and popular third-party Python librariesLearn how to develop client programs for networking protocols such as HTTP/HTTPS, SMTP, POP3, FTP, CGI, XML-RPC, SOAP and RESTProvides practical, hands-on recipes combined with short and concise explanations on code snippetsWho This Book Is ForIf you are a network programmer, system/network administrator, or a web application developer, this book is ideal for you. You should have a basic familiarity with the Python programming language and TCP/IP networking concepts. However if you are a novice, you will develop an understanding of the concepts as you progress with this book. This book will serve as a supplementary material for developing hands-on skills in any academic course on network programming.
What You Will LearnDevelop TCP/IP networking client/server applicationsAdminister local machines' IPv4/IPv6 network interfacesWrite multi-purpose efficient web clients for HTTP and HTTPS protocolsCreate e-mail clients to work with common e-mail protocols such as SMTP, POP3, IMAP, and so on.Scrape websites and search for useful informationPerform remote system administration tasks over Telnet and SSH connectionsInteract with popular websites via web services such as XML-RPC, SOAP, and REST APIsMonitor and analyze major common network security vulnerabilitiesIn DetailPython is an excellent language to use to write code and have fun by prototyping applications quickly. The presence of lots of third-party libraries, also known as batteries, makes it even more easier and faster to prototype an application or to implement a new algorithm. If you are interested in creating the building blocks for many practical web and networking applications that rely on networking protocols then this book is a must-have.
This book highlights major aspects of network programming in Python starting from writing simple networking clients, to developing complex screen-scraping and network security monitoring scripts. It creates the building blocks for many practical web and networking applications that rely on various networking protocols. This book presents the power and beauty of Python in solving the numerous real-world tasks in the area of network programming, system and network administration, network monitoring, and web-application development.
This book develops your ability to solve a wide range of network programming tasks in Python. We will start by exploring the Python standard library functions to create client/server network and manipulate your local networking resources available under both IPv4 and IPv6. The practical focus continues with creating web and email clients, scraping web pages, fetching information from various websites, and searching for information on the Web such as Amazon, Flickr, and other sites. It further develops your skills to analyze your network security vulnerabilities using advanced network packet capture and analysis techniques.
The book has quick recipes and follows a good format of solving problems in a cookbook style. The initial chapters are well written and easy to follow. Pros: Quick tips Quality coding (following OOP)
Cons: The recipes of later chapters like Programming with HTTP, Screen-scraping have very specific recipes which might not be useful in real life. Author could have made those recipes more generic by generalizing the scripts.
a collection of 'recipes'. Good to get those tasks (network) tasks up and running quickly. Not good as a general reference: poor and few explanations beyond what the author(s) feel(s) like talking about at the time
Reviewing books can be a tedious task in it self, and my expectations for reviewing Dr. M. O. Faruque Sarker's Python Network Programming Cookbook, was beyond the exhaustion level even before I had turned the first page. After all - it is a book about network programming, sockets, Client/Server Programming and a lot more – which usually not belongs to the horror literature, but merely is a literal sleeping pill.
It took me only a few minutes of reading to see, that this time my expectations would not be fulfilled. With a rarely seen clarity, Dr. M. O. Faruque Sarker describes the task, presents the solution and explains the functionality of each problem in plain words, so everybody can understand what the code actually do. I am virtually on the edge to state, that even without previous knowledge of Python, you can benefit from the examples, but it does help to know at least the basics.
The book is a cookbook in the best sense. You can easily read selected chapters without prior knowledge of previous chapters and, each chapter clarify which modules are needed before presenting the examples. This is absolutely a great plus and combined with an easy to read concept, this book is one of the best I have seen in years. Dr. M. O. Faruque Sarker's way of explaining each example can be compared to the concept: Hit and run. You hit the problem, see the solution and runs for the nearest laptop to derive even more sophisticated solutions, with you newly acquired knowledge.
This book is a must for Python programmers that want to explore the versatility of Python and take another step forward in the Python world.
However, before adding this book to your library a little warning, which also was missing on the books cover: According to the standard Python cookbook, some of the content I the book can be extremely addictive.
Claus Holm Larsen
CEO and founder of Holmes WebDesign. Founder of the Python Programming Society on Facebook.
Python Network Cookbook provides you with the samples related to the range of networking topics. Whether you will benefit from it depends heavily on your tasks. The point here is that the range of samples is really huge. Starting with data manipulation required for network based transfer, through socket based networking, interfaces related samples, IPv6, to topics covering HTTP, IMAP, and web services.
Now, don’t get me wrong, but the percentage of the book you will benefit from heavily depends on your day to day work. If you deal with http stuff all the time, you will find half of the book entertaining. On the other hand, if you do some low level development and you want to design your own means of transportation based on sockets, first half of the book will be of your interest.
What I have found particularly useful for me were the http related samples, web service handling, and port forwarding. But these are things that I can benefit from directly.
For sure, this book will be really interesting for the students who have to deal with networking related lectures. You will be able to jump directly into virtually any network related topic.
The book has one drawback. Some of the samples are Linux based. I am pretty sure you can use them anyway by using MacPorts or Cygwin, but still, it might be slightly frustrating for Windows and Mac users that some samples are marked as “Linux only”.
Before you buy the book, make a simple calculation how much you can benefit from it. If you decide that more than half of the book is useful for you – go ahead.