• Complain

Sam Washington - Learning Python Network Programming

Here you can read online Sam Washington - Learning Python Network Programming full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. City: Birmingham, year: 2015, publisher: Packt Publishing, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Sam Washington Learning Python Network Programming

Learning Python Network Programming: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Learning Python Network Programming" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Cover; Copyright; Credits; About the Authors; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Network Programming and Python; An introduction to TCP/IP networks; IP addresses; Network Interfaces; Assigning IP addresses; IP addresses on the Internet; Packets; Networks; Routing with IP; DNS; The protocol stack or why the Internet is like a cake; Layer 4 - TCP and UDP; Network ports; UDP; TCP; UDP versus TCP; Layer 5 - The application layer; On to Python!; Network programming with Python; Breaking a few eggs; Taking it from the top; Downloading an RFC.

Looking deeperProgramming for TCP/IP networks; Firewalls; Network Address Translation; IPv6; Summary; Chapter 2: HTTP and Working with the Web; Request and response; Requests with urllib; Response objects; Status codes; Handling problems; HTTP headers; Customizing requests; Content compression; Multiple values; Content negotiation; Content types; User agents; Cookies; Cookie handling; Know your cookies; Redirects; URLs; Paths and relative URLs; Query strings; URL encoding; URLs in summary; HTTP methods; The HEAD method; The POST method; Formal inspection; HTTPS; The Requests library.

Handling errors with RequestsSummary; Chapter 3: APIs in Action; Getting started with XML; The XML APIs; The basics of ElementTree; Pretty printing; Element attributes; Converting to text; The Amazon S3 API; Registering with AWS; Authentication; Setting up an AWS user; Regions; S3 buckets and objects; An S3 command-line client; Creating a bucket with the API; Uploading a file; Retrieving an uploaded file through a web browser; Displaying an uploaded file in a web browser; Downloading a file with the API; Parsing XML and handling errors; Parsing XML; Finding elements; Handling errors.

Further enhancementsThe Boto package; Wrapping up with S3; JSON; Encoding and decoding; Using dicts with JSON; Other object types; The Twitter API; A Twitter world clock; Authentication for Twitter; Registering your application for the Twitter API; Authenticating requests; A Twitter client; Polling for Tweets; Processing the tweets; Rate limits; Sending a reply; Final touches; Taking it further; Polling and the Twitter streaming APIs; Alternative oAuth flows; HTML and screen scraping; HTML parsers; Show me the data; Parsing HTML with lxml; Zeroing in; Searching with XPath; XPath conditions.

Pulling it togetherWith great power ... ; Choosing a User Agent; The Robots.txt file; Summary; Chapter 4: Engaging with E-mails; E-mail terminologies; Sending e-mails with SMTP; Composing an e-mail message; Sending an e-mail message; Sending e-mails securely with TLS; Retrieving e-mails by using POP3 with poplib; Retrieving e-mails by using IMAP with imaplib; Sending e-mail attachments; Sending e-mails via the logging module; Summary; Chapter 5: Interacting with Remote Systems; Secure shell - access using Python; Inspecting the SSH packets; Transferring files through SFTP.

Transferring files with FTP.

If youre a Python developer or a system administrator with Python experience and youre looking to take your first steps in network programming, then this book is for you. Basic knowledge of Python is assumed. Read more...
Abstract: Cover; Copyright; Credits; About the Authors; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Network Programming and Python; An introduction to TCP/IP networks; IP addresses; Network Interfaces; Assigning IP addresses; IP addresses on the Internet; Packets; Networks; Routing with IP; DNS; The protocol stack or why the Internet is like a cake; Layer 4 - TCP and UDP; Network ports; UDP; TCP; UDP versus TCP; Layer 5 - The application layer; On to Python!; Network programming with Python; Breaking a few eggs; Taking it from the top; Downloading an RFC.

Looking deeperProgramming for TCP/IP networks; Firewalls; Network Address Translation; IPv6; Summary; Chapter 2: HTTP and Working with the Web; Request and response; Requests with urllib; Response objects; Status codes; Handling problems; HTTP headers; Customizing requests; Content compression; Multiple values; Content negotiation; Content types; User agents; Cookies; Cookie handling; Know your cookies; Redirects; URLs; Paths and relative URLs; Query strings; URL encoding; URLs in summary; HTTP methods; The HEAD method; The POST method; Formal inspection; HTTPS; The Requests library.

Handling errors with RequestsSummary; Chapter 3: APIs in Action; Getting started with XML; The XML APIs; The basics of ElementTree; Pretty printing; Element attributes; Converting to text; The Amazon S3 API; Registering with AWS; Authentication; Setting up an AWS user; Regions; S3 buckets and objects; An S3 command-line client; Creating a bucket with the API; Uploading a file; Retrieving an uploaded file through a web browser; Displaying an uploaded file in a web browser; Downloading a file with the API; Parsing XML and handling errors; Parsing XML; Finding elements; Handling errors.

Further enhancementsThe Boto package; Wrapping up with S3; JSON; Encoding and decoding; Using dicts with JSON; Other object types; The Twitter API; A Twitter world clock; Authentication for Twitter; Registering your application for the Twitter API; Authenticating requests; A Twitter client; Polling for Tweets; Processing the tweets; Rate limits; Sending a reply; Final touches; Taking it further; Polling and the Twitter streaming APIs; Alternative oAuth flows; HTML and screen scraping; HTML parsers; Show me the data; Parsing HTML with lxml; Zeroing in; Searching with XPath; XPath conditions.

Pulling it togetherWith great power ... ; Choosing a User Agent; The Robots.txt file; Summary; Chapter 4: Engaging with E-mails; E-mail terminologies; Sending e-mails with SMTP; Composing an e-mail message; Sending an e-mail message; Sending e-mails securely with TLS; Retrieving e-mails by using POP3 with poplib; Retrieving e-mails by using IMAP with imaplib; Sending e-mail attachments; Sending e-mails via the logging module; Summary; Chapter 5: Interacting with Remote Systems; Secure shell - access using Python; Inspecting the SSH packets; Transferring files through SFTP.

Transferring files with FTP.

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

Sam Washington: author's other books


Who wrote Learning Python Network Programming? Find out the surname, the name of the author of the book and a list of all author's works by series.

Learning Python Network Programming — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Learning Python Network Programming" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Learning Python Network Programming

Learning Python Network Programming

Copyright 2015 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

First published: June 2015

Production reference: 1100615

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.

ISBN 978-1-78439-600-8

www.packtpub.com

Credits

Authors

Dr. M. O. Faruque Sarker

Sam Washington

Reviewers

Konstantin Manchev Manchev

Vishrut Mehta

Anhad Jai Singh

Ben Tasker

Ilja Zegars

Commissioning Editor

Kunal Parikh

Acquisition Editor

Kevin Colaco

Content Development Editor

Rohit Singh

Technical Editor

Saurabh Malhotra

Copy Editors

Ameesha Green

Rashmi Sawant

Trishla Singh

Project Coordinator

Izzat Contractor

Proofreaders

Stephen Copestake

Safis Editing

Indexer

Hemangini Bari

Graphics

Abhinash Sahu

Production Coordinator

Shantanu Zagade

Cover Work

Shantanu Zagade

About the Authors

Dr. M. O. Faruque Sarker is a software architect based in London, UK, where he has been shaping various Linux and open source software solutions, mainly on cloud computing platforms, for commercial companies, educational institutions, and multinational consultancies. Over the past 10 years, he has been leading a number of Python software development and cloud infrastructure automation projects. In 2009, he started using Python, where he was responsible for shepherding a fleet of miniature E-puck robots at the University of South Wales, Newport, UK. Later, he honed his Python skills, and he was invited to work on the Google Summer of Code (2009/2010) programs for contributing to the BlueZ and Tahoe-LAFS open source projects. He is the author of Python Network Programming Cookbook , Packt Publishing .

He received his PhD in multirobot systems from the University of South Wales. He is currently working at University College London. He takes an active interest in cloud computing, software security, intelligent systems, and child-centric education. He lives in East London with his wife, Shahinur, and daughter, Ayesha.

All praises and thanks to Allah, the God who is the Merciful and the Beneficent. I would not be able to finish this book without the help of God. I would like to thank Packt Publishing's entire team and my coauthor, Sam, who were very friendly and cooperative in this long journey. I would also like to thank my family and friends for their sacrifice of time, encouraging words, and smiles.

Sam Washington currently works at University College London as a member of its Learning and Teaching Applications team, developing and supporting the University's Moodle virtual learning environment, its wikis and blogs, and its online media services. Prior to this, he was a system administrator for UCL's several museums. He has working experience of managing the demands of varied web applications, and deploying and supporting Windows, Linux, and TCP/IP networks. He has been using Python for professional and personal projects for over 7 years.

I would like to thank the team at Packt for their encouragement and input throughout this project, especially Rebecca, Rohit, Saurabh, Trishla, and Akshay. I would also like to thank the reviewers for all their insights and corrections, Anhad Jai Singh, Ben Tasker, Grzegorz Gwd, Ilja Zegars, Tom Stephens, Vishrut Mehta, Konstantin Manchev, and Andrew Armitage. I would like to express my immense respect and gratitude to the entire Python community for creating such a great programming language and ecosystem, and thanks to Faruque for giving me this opportunity to give a little in return. And Christina, thank you for still being here. You can have me back now.

About the Reviewers

Konstantin Manchev Manchev is a technical support professional, who has more than 15 years of experience in a wide range of operating systems, database services, scripting, networking, and security in the mobile telecommunication systems. He actively participates in the adaption of various vendor equipment projects to live mobile operator networks.

He has worked on the following technologies:

  • Mobile systems such as GSM, UMTS, 3G, and WiFi
  • Vendors such as Cisco, ALU, NSN, RedHat, and Canonical
  • Network elements such as MSC, VLR, HLR, MSCS, OCS, NGIN, and PCRF
  • Network protocol suites such as SS#7 and TCP/IP
  • Webpage technologies such as HTTP, XML, HTML, SOAP, and REST
  • Operating systems such as Linux (Debian, Ubuntu, RHEL, and CentOS), Windows, and Unix
  • Virtualisation and Cloud technologies such as EC2, OpenStack, VMware, VirtualBox, and so on
  • Programming languages such as Perl, Python, awk, bash, C, Delphi, Java, and so on
  • Databases such as MongoDB, InfluxDB, MySQL, MS SQL, Oracle, and so on
  • Monitoring systems such as Nagios, Grafana, Zabbix, and so on

He specializes in IT and Telecom services support, installation, configuration, maintenance, and implementation of the latest market technology solutions. He is a Linux enthusiast.

I would like to thank my wife, Nadya Valcheva-Mancheva, my kids, Elena Mancheva and Daniel Manchev, and colleagues, Attila Sovak, Ketan Delhiwala, Jerzy Sczudlowski, Aneesh Kannankara, Devrim Kucuk, Peter De Vriendt, Peyo Chernev, Andrey Royatchki, Tzvetan Balabanov, Vasil Zgurev, Ludmil Panov, Plamen Georgiev, Ivailo Pavlov, Mitko Bagrev, and Milen Cholakov for their support.

Vishrut Mehta is a student of IIIT Hyderabad, who is pursuing his masters in the field of cloud computing and software-defined networks. He has participated in the Google Summer of Code 2013 program under Sahana Software Foundation, and he was also the administrator for Google Code-In. He also did his research internship at INRIA, France, for 3 months under Dr. Nikos Parlavantzas in the field of automating multi-cloud applications.

He has worked on Untangle Network Security and Python Network Programming Cookbook, both by Packt Publishing.

I would like to thank my advisors, Dr. Vasudeva Varma and Dr. Reddy Raja, for helping me in my work and constantly supporting me with my research.

Anhad Jai Singh is a computer science graduate from IIIT Hyderabad. He's a part-time system administrator and has worked as a Python developer in the past. He's a two-time release engineering intern at Mozilla, as well as a Google Summer of Code participant. In his free time, he plays with networks and distributed systems. You can find him lurking around IRC networks under the alias of "ffledgling."

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Learning Python Network Programming»

Look at similar books to Learning Python Network Programming. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Learning Python Network Programming»

Discussion, reviews of the book Learning Python Network Programming and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.