Summary
In this chapter, we reached out to the cloud using the network protocols HTTP and SSH. You learned how to download data over HTTP using urllib
, and how to parse XML data structures using the ElementTree
module. You also discovered an alternative way to interact with HTTP using the requests
library and learned the basics of interacting with a REST API. You learned to work with HTTP interactions that required authentications and session cookies, and uploaded a file. Finally, you learned how to transfer and manage remote files over SSH with SFTP services using the paramiko
library.
In the next chapter, we'll stop long-running processes from freezing up our application and improve our application's performance by learning about asynchronous programming. We'll learn to manipulate the Tkinter event loop for better responsiveness as well as advanced asynchronous programming using Python's threading
library.