All the tables provided in the cheat sheets are also presented in tables below which are easy to copy and paste.

View or Download the Cheat Sheet JPG image

Right-click on the image below to save the JPG file (1987 width x 2362 height in pixels), or click here to open it in a new browser tab. Once the image opens in a new window, you may need to click on the image to zoom in and view the full-sized jpeg.

The Python Network Programming Cheat Sheet covers:

  • Required common installation modules: PIP and IDLE
  • Top python network programming libraries
  • Network forensics: Required python libraries and scripts
  • Python Keywords
  • Data Types, Math operators
  • Network Analysis with Python
  • The dnspython library
  • Socket Module (Berkley API interface)
  • Socket Types, Creating Sockets
  • Socket Examples
  • Script Examples
  • Parsing Modules

View or Download the cheat sheet PDF file

Download the cheat sheet PDF file here. When it opens in a new browser tab, simply right click on the PDF and navigate to the download menu.

What’s included in this cheat sheet

The following categories and items have been included in the cheat sheet:

Required common installation modules: PIP and IDLE

Top python network programming libraries

Network forensics: Required python libraries and scripts

Python Keywords

Data Types

Math operators

Comments

Network Analysis with Python

The dnspython library

Socket Module (Berkley API interface)

Socket Types

Creating Sockets

Socket Examples

Script Examples

Parsing Modules

socket.socket() # Function that creates socket

• e.g. TCP - UDP2 = socket. socket (socket.AF_INET, socket.SOCK_DGRAM)

• e.g. UDP - TCP2 = socket. socket (socket.AF_INET, socket.SOCK_STREAM)