#!/usr/bin/env python # -*- coding: utf-8 -*- #from WeatherData_Clouds import WeatherData_Clouds #from WeatherData_Coords import WeatherData_Coords #from WeatherData_Main import WeatherData_Main #from WeatherData_Rain import WeatherData_Rain #from WeatherData_Sys import WeatherData_Sys #from WeatherData_Weather import WeatherData_Weather #from WeatherData_Wind import WeatherData_Wind from OpenWeatherMap.WeatherData_Clouds import WeatherData_Clouds from OpenWeatherMap.WeatherData_Coords import WeatherData_Coords from OpenWeatherMap.WeatherData_Main import WeatherData_Main from OpenWeatherMap.WeatherData_Rain import WeatherData_Rain from OpenWeatherMap.WeatherData_Sys import WeatherData_Sys from OpenWeatherMap.WeatherData_Weather import WeatherData_Weather from OpenWeatherMap.WeatherData_Wind import WeatherData_Wind class WeatherData(object): Coord = WeatherData_Coords() Weather = WeatherData_Weather() Source = "" Main = WeatherData_Main() Visibility = 0 Wind = WeatherData_Wind() Clouds = WeatherData_Clouds() DT = 0 Sys = WeatherData_Sys() TimeZone = 0 ID = 0 Name = "" Cod = 0 Message = "" Rain = WeatherData_Rain() def __del__(self): try: del self.Clouds except: print("Failed to clear WeatherData.Clounds") try: del self.Weather except: print("Failed to clear WeatherData.Weather") try: del self.Source except: print("Failed to clear WeatherData.Source") try: del self.Main except: print("Failed to clear WeatherData.Main") try: del self.Visibility except: print("Failed to clear WeatherData.Visibility") try: del self.Wind except: print("Failed to clear WeatherData.Wind") try: del self.DT except: print("Failed to clear WeatherData.DT") try: del self.Sys except: print("Failed to clear WeatherData.Sys") try: del self.TimeZone except: print("Failed to clear WeatherData.TimeZone") try: del self.ID except: print("Failed to clear WeatherData.ID") try: del self.Name except: print("Failed to clear WeatherData.Name") try: del self.Cod except: print("Failed to clear WeatherData.Cod") try: del self.Message except: print("Failed to clear WeatherData.Message") try: del self.Rain except: print("Failed to clear WeatherData.Rain")