Cargando…

Learning Python networking : a complete guide to build and deploy strong networking capabilities using Python 3.7 and Ansible /

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.

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autores principales: Manuel Ortega, José (Autor), Sarker, M. O. Faruque (Autor), Washington, Sam (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Publishing, 2019.
Edición:Second edition.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • 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