Edition |
Second edition. |
Description |
1 online resource : illustrations |
Note |
Previous edition published: 2015. |
Bibliography |
Includes bibliographical references. |
Contents |
Cover; Title Page; Copyright and Credits; About Packt; Contributors; Table of Contents; Preface; Section 1: Introduction to Network and HTTP Programming; Chapter 1: Network Programming with Python; Technical requirements; An introduction to TCP/IP networking; Introduction to TCP/IP; The protocol stack, layer by layer; UDP; TCP; Protocol concepts and the problems that protocols solve; IP addresses and ports; Network interfaces; UDP versus TCP; DHCP; DNS; Addressing; NAT; IPv4; IPv6; Python network programming through libraries; An introduction to the PyPI Python repository |
|
Alternatives to pip for installing packagesConda; Virtualenv; Pipenv; An introduction to libraries for network programming with Python; Introduction to sockets; Socket module in Python; Client socket methods; Server socket methods; Working with RFC; Extracting RFC information; Downloading an RFC with urllib; Downloading an RFC with requests; Downloading an RFC with the socket module; Interacting with Wireshark with pyshark; Introduction to Wireshark; Wireshark installation; Capturing packets with Wireshark; Network traffic in Wireshark; Color coding in Wireshark |
|
Working with filters in WiresharkFiltering by protocol name; HTTP objects filter; Capture filters; Display filters; Analyzing networking traffic using the pyshark library; FileCapture and LiveCapture in pyshark; Summary; Questions; Further reading; Chapter 2: Programming for the Web with HTTP; Technical requirements; Consuming web services in Python with urllib; Status codes; Handling exceptions; HTTP headers; User agent; Customizing requests with urllib; Getting headers with a proxy; Content types; Extracting links from a URL with urllib; Getting images from a URL with urllib |
|
Working with URLsConsuming web services in Python with requests; Introduction to requests; Checking HTTP headers; Proxy requests; Get whois information; Working with JSON; Handling forms with urllib and requests with Python 3.7; Handling forms with urllib; Handling forms with requests; Handling cookies with urllib and requests with Python; What are cookies?; Handling cookies with urllib; Cookie handling with requests; Handling HTTP Basic and Digest Authentication with requests; Introduction to authentication mechanisms; HTTP Basic authentication; HTTP Digest authentication; Summary; Questions |
|
Further readingSection 2: Interacting with APIs, Web Scraping, and Server Scripting; Chapter 3: Application Programming Interface in Action; Technical requirements; Introduction to REST APIs; Advantages of using REST APIs; Introduction to JSON and the JSON module; Encoding and decoding with the JSON package; Using dict with JSON; Interacting with a JSON hybrid-REST API (Twitter); The Twitter API; Registering your application for the Twitter API; Authenticating requests with OAuth; Collecting information from Twitter; A Twitter client; Retrieving tweets from a timeline; Searching tweets |
Summary |
Python is a popular programming language used for performing network automation in an easy-to-implement way. This book is an update to Learning Python Networking, and delves into the concepts of Python network programming and its importance in today's world. |
Local Note |
eBooks on EBSCOhost EBSCO eBook Subscription Academic Collection - North America |
Subject |
Python (Computer program language)
|
|
Computer networks -- Management.
|
|
Client/server computing.
|
|
Client/server computing. |
|
Computer networks -- Management. |
|
Python (Computer program language) |
Added Author |
Sarker, M. O. Faruque, author.
|
|
Washington, Sam, author.
|
Other Form: |
Print version: Ortega, José Manuel. Learning Python Networking : A Complete Guide to Build and Deploy Strong Networking Capabilities Using Python 3. 7 and Ansible, 2nd Edition. Birmingham : Packt Publishing Ltd, ©2019 9781789958096 |
ISBN |
9781789952445 |
|
1789952441 |
|
9781789958096 |
|