Pypcap is a Python library for interacting with the libpcap C library. This makes it possible to write packet-handling code in Python that is portable across a wide range of platforms. Pypcap also supports non-blocking mode, which can be used to write programs that monitor network traffic in real time.