Below is a code snippet of a standard import section when working with the AerisWeather Python library. The first import line we see below is for our main package, aerisweather. Once we have successfully created an aerisweather object, we'll do most of the heavy lifting with it.

    from aerisweather.aerisweather import AerisWeather
    from aerisweather.requests.ParameterType import ParameterType 
    from aerisweather.requests.RequestLocation import RequestLocation  
    from aerisweather.requests.RequestAction import RequestAction  
    from aerisweather.requests.RequestFilter import RequestFilter  
    from keys import client_id, client_secret, app_id

The last import is also important to note, and if you've already completed setting up your weather API credentials, it should look familiar. We need this so we can pass these credentials along with the requests for data. We'll talk about how to configure the keys file in the next section Setting the weather API Credentials.

The rest of the imports we'll cover later as we walk through using the library in more detail.

Last modified: July 30, 2020