Chapter 11. Networking

Network communication is used to retrieve data needed for an algorithm running locally, share information for distributed processing, and manage cloud services. Python’s standard library comes complete with modules for creating network services, as well as for accessing existing services remotely.

The low-level socket library provides direct access to the native C socket library and can be used to communicate with any network service. select watches multiple sockets simultaneously and is useful for allowing network servers to communicate with multiple clients simultaneously.

The frameworks in SocketServer abstract out a lot of the repetitive work necessary to create a new network server. The classes can be combined to create ...

Get The Python Standard Library by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.