Update; add headers to py files
This commit is contained in:
@@ -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,
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user