Update; add headers to py files

This commit is contained in:
Chris Proctor
2023-07-31 09:54:45 -04:00
parent 9551d88843
commit 91c7684cc2
11 changed files with 428 additions and 8 deletions

View File

@@ -1,3 +1,13 @@
# weather.py
# ------------
# By MWC Contributors
#
# Defines `print_weather`, which does all the work of fetching
# the requested weather data and printing it out to the screen
# in a sensible way.
#
# It's your job to implement this function.
from weather.weather_apis import (
geocode_location,
estimate_location,

View File

@@ -1,5 +1,7 @@
# Weather APIs
# weather_apis.py
# ---------------
# By MWC Contributors
#
# This module contains functions which interact with external APIs related to weather.
# The module relies on USA-specific services; it will need to be extended using local
# services for other regions.
@@ -7,6 +9,8 @@
# The National Weather Service (NWS) provides weather forecasting services across US
# states and territories. NWS divides the country into a grid of 2.5km squares, and
# provides a forecast for each grid square.
#
# You will need to use these functions, but you don't need to edit this file.
import geocoder
import requests

View File

@@ -1,3 +1,13 @@
# weather_cli.py
# ------------
# By MWC Contributors
#
# Defines a CLI (command-line interface) for weather.
# This is the program that will actually run when you
# run `weather` in Terminal.
#
# You don't need to do anything with thie file.
from argparse import ArgumentParser
from weather.weather import print_weather