Summary
In this chapter, we learned about the main system modules for Python programming, including os
for working with the operating system, sys
for working with the filesystem, and subprocess
for executing commands. We also reviewed how to work with the filesystem, along with reading and creating files, managing threads, and concurrency. Finally, we reviewed how to create a WebSocket server and client using the asyncio
, aiohttp
, and socket.io
modules.
After practicing with the examples provided in this chapter, you now have sufficient knowledge to automate tasks related to the operating system, access to the filesystem, and the concurrent execution of tasks.
In the next chapter, we will explore the socket package for resolving IP addresses and domains, and implement clients and servers with the TCP and UDP protocols.