Building a Site Connectivity Checker (Summary)
You’ve built a functional site connectivity checker application in Python. Now you know the basics of handling HTTP requests to a given website. You also learned how to create a minimal yet functional command-line interface (CLI) for your application and how to organize a real-world Python project. Additionally, you’ve tried out Python’s asynchronous features.
In this video course, you learned how to:
- Create command-line interfaces (CLI) in Python with
argparse
- Check if a website is online using Python’s
http.client
- Run synchronous checks on multiple websites
- Check if a website is online using
aiohttp
- Check the connectivity of multiple websites asynchronously
Now that you’ve finished building your site connectivity checker application, you can go a step further by implementing a few additional features. Adding new features by yourself will push you to learn about new and exciting coding concepts and topics.
Here are some ideas for new features:
- Timing support: Measure the response time of every target website.
- Check-scheduling support: Schedule multiple rounds of connectivity checks in case some websites are offline.
To implement these features, you can take advantage of Python’s time
module, which will allow you to measure the execution time of your code.
Once you implement these new features, then you can change gears and jump into other cool and more complex projects. Here are some great next steps for you to continue learning Python and building projects:
-
Build a Dice-Rolling Application With Python: In this step-by-step project, you’ll build a dice-rolling simulator app with a minimal text-based user interface using Python. The app will simulate the rolling of up to six dice. Each individual die will have six sides.
-
Raining Outside? Build a Weather CLI App With Python: In this tutorial, you’ll write a nicely formatted Python CLI app that displays information about the current weather in any city that you provide the name for.
-
Build a Python Directory Tree Generator for the Command Line: In this step-by-step project, you’ll create a Python directory tree generator application for your command line. You’ll code the command-line interface with
argparse
and traverse the file system usingpathlib
. -
Build a Command-Line To-Do App With Python and Typer: In this step-by-step project, you’ll create a to-do application for your command line using Python and Typer. While you build this app, you’ll learn the basics of Typer, a modern and versatile library for building command-line interfaces (CLIs).
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
00:00 Summary. Well done, you’ve made it to the end of the course. In it, you’ve built a functional site connectivity checker application in Python. Now you know the basics of handling HTTP requests to a given website.
00:16 You also learned how to create a minimal yet functional command-line interface for your application and how to organize a real-world Python project.
00:25
Additionally, you tried out Python asynchronous features. In this course, you’ve learned how to create command-line interfaces in Python with APIs, check if a website is online using Python http.client
, run synchronous checks on multiple websites, check if a website is online using aiohttp
, and check the connectivity of multiple websites asynchronously.
00:53 With this foundation, you’re ready to continue leveling up your skills by creating more complex command-line applications. You’re also better prepared to continue learning about HTTP requests with Python. We hope you found this course useful, and we’ll see you again soon at realpython.com.
Become a Member to join the conversation.