Secdev Scapy
Scapy: the Python-based interactive packet manipulation program
...+, it supports Python 3.7+ (and PyPy). Scapy supports Python 2.7 and Python 3 (3.4 to 3.9). It's intended to be cross platform, and runs on many different platforms (Linux, OSX, *BSD, and Windows). Scapy can easily be used as an interactive shell to interact with the network. Scapy works without any external Python modules on Linux and BSD like operating systems.