Raining Outside? Build a Weather CLI App With Python
You’re stuck inside because of torrential rains—again! You wonder what the weather’s like in that faraway city where your friends from the Real Python community live. You’d rather stick around in your command-line interface (CLI) than look it up in your browser. If that sounds like a task you’d want to tackle by building a command-line weather app using only the Python standard library, then this tutorial is for you.
In this tutorial, you’ll learn how to:
- Build a functional weather lookup tool using only Python standard library modules
- Build a Python CLI app using
argparse
- Use
configparser
to handle API secrets - Make API calls from your Python script
- Create visually attractive CLI output using ANSI escape codes,