Learning Python Networking - Second Edition
Book
eBook
$38.99
$26.99
Print
$54.99
Subscription
$15.99
$10 p/m for three months
What do you get with a Packt Subscription?
This book & 7000+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook + Subscription?
Download this book in EPUB and PDF formats, plus a monthly download credit
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook?
What do I get with Print?
Get a paperback copy of the book delivered to your specified Address*
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do I get with Print?
What do you get with video?
What do you get with video?
What do you get with Audiobook?
What do you get with Exam Trainer?
eBook
$38.99
$26.99
Print
$54.99
Subscription
$15.99
$10 p/m for three months
What do you get with a Packt Subscription?
This book & 7000+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook + Subscription?
Download this book in EPUB and PDF formats, plus a monthly download credit
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook?
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do I get with Print?
Get a paperback copy of the book delivered to your specified Address*
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do I get with Print?
Get a paperback copy of the book delivered to your specified Address*
Access this title in our online reader
Online reader with customised display settings for better reading experience
What do you get with video?
Download this video in MP4 format
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with video?
Stream this video
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with Audiobook?
Download a zip folder consisting of audio files (in MP3 Format) along with supplementary PDF
What do you get with Exam Trainer?
Flashcards, Mock exams, Exam Tips, Practice Questions
Access these resources with our interactive certification platform
Mobile compatible-Practice whenever, wherever, however you want
-
Free ChapterSection 1: Introduction to Network and HTTP Programming
-
Network Programming with Python
-
Programming for the Web with HTTP
- Programming for the Web with HTTP
- Technical requirements
- Consuming web services in Python with urllib
- Consuming web services in Python with requests
- Handling forms with urllib and requests with Python 3.7
- Handling cookies with urllib and requests with Python
- Handling HTTP Basic and Digest Authentication with requests
- Summary
- Questions
- Further reading
-
Section 2: Interacting with APIs, Web Scraping, and Server Scripting
-
Application Programming Interface in Action
- Application Programming Interface in Action
- Technical requirements
- Introduction to REST APIs
- Introduction to JSON and the JSON module
- Interacting with a JSON hybrid-REST API (Twitter)
- Introduction to XML
- Working with XML and a full REST API (Amazon S3 bucket) with the Boto module
- Summary
- Questions
- Further reading
-
Web Scraping with BeautifulSoup and Scrapy
- Web Scraping with BeautifulSoup and Scrapy
- Technical requirements
- Introduction to web scraping
- Extracting information from web pages and parsing HTML with BeautifulSoup
- Introduction to Scrapy components and architecture
- Scrapy as a framework for performing web crawling processes and data analysis
- Working with Scrapy in the cloud
- Summary
- Questions
- Further reading
-
Engaging with Email
- Engaging with Email
- Technical requirements
- Introduction to email protocols
- Sending emails with SMTP through the smtplib library
- Learning the POP3 protocol and retrieving emails with poplib
- Manipulating and retrieving emails on the server email using IMAP with imapclient and imaplib
- Summary
- Questions
- Further reading
-
Interacting with Remote Systems
- Interacting with Remote Systems
- Technical requirements
- Understanding the SSH protocol
- SSH terminals and running commands with paramiko
- Understanding the FTP protocol for transferring files
- Reading and interacting with SNMP servers
- Reading and interacting with LDAP servers
- Summary
- Questions
- Further reading
-
Section 3: IP Address Manipulation and Network Automation
-
Working with IP and DNS
- Working with IP and DNS
- Technical requirements
- Principles of the IP protocol
- Retrieving the network configuration of a local machine
- Using Python to manipulate IP addresses and perform CIDR calculations
- The dnspython module as a tool for extracting information from DNS servers
- GeoIP lookups with pygeoip and python-geoip
- Summary
- Questions
- Further reading
-
Implementing IPv6 and Address Manipulation
- Implementing IPv6 and Address Manipulation
- Technical requirements
- Learning and understanding the IPv6 protocol
- Create an echo client and server with IPv6
- Understanding netifaces module for checking IPv6 support on your network
- Using the netaddr module as a network-address manipulation library for Python
- Understand ipaddress module as IPv4 and IPv6 manipulation library
- Summary
- Questions
- Further reading
-
Performing Network Automation with Python and Ansible
-
Section 4: Sockets and Server Programming
-
Programming with Sockets
-
Designing Servers and Asynchronous Programming
- Designing Servers and Asynchronous Programming
- Technical requirements
- Building a multiprocessing-based TCP server
- Building asynchronous applications with asyncio and aiohttp
- Building asynchronous network applications with Tornado
- Building asynchronous network applications with Twisted
- Building asynchronous network applications with Celery
- Summary
- Questions
- Further reading
-
Designing Applications on the Web
- Designing Applications on the Web
- Technical requirements
- Writing a web application with WSGI
- Existing web application frameworks (Django, Flask, and Plone)
- The MVC pattern and dynamic web programming with Python
- Creating RESTful web applications and working with Flask and HTTP requests
- Working with a database in Flask with SQLAlchemy
- Summary
- Questions
- Further reading
-
Assessment
- Assessment
- Chapter 1, Network Programming with Python
- Chapter 2, Programming for the Web with HTTP
- Chapter 3, Application Programming Interface in Action
- Chapter 4, Web Scraping with BeautifulSoup and Scrapy
- Chapter 5, Engaging with Email
- Chapter 6, Interacting with Remote Systems
- Chapter 7, Working with IP and DNS
- Chapter 8, Implementing IPv6 and Address Manipulation
- Chapter 9, Performing Network Automation with Python and Ansible
- Chapter 10, Programming with Sockets
- Chapter 11, Designing Servers and Asynchronous Programming
- Chapter 12, Designing Applications on the Web
-
Another Book You May Enjoy
About this
book
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 walk through of today's major networking protocols, through 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 will utilize Python for emailing using different protocols, and you'll interact with remote systems and IP and DNS networking. You will cover the connection of networking devices and configuration using Python 3.7, along with cloud-based network management tasks using Python.
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 clientside applications, including web API clients, email clients, SSH, and FTP. These applications will also be implemented through existing web application frameworks.
- Publication date:
- March 2019
- Publisher
- Packt
- Pages
- 490
- ISBN
- 9781789958096
Latest Reviews
(2 reviews total)