Metadata-Version: 2.1
Name: yahoo-weather
Version: 1.0.6
Summary: Python library for yahoo weather new API
Home-page: https://github.com/M-Ahadi/yahoo_weather
Author: Mojtaba Ahadi
Author-email: m.ahadi@outlook.com
License: Apache 2.0
Description: # Python Library for Yahoo Weather (New API)
        On 3 Jan 2019 Yahoo changed its Weather API to use OAuth1 Authentication. This new method requires authentication to use the API. This library helps you to handle the new API.
        In order to use the new API you have to get an API key from [Yahoo!](https://developer.yahoo.com/weather/?guccounter=1)
        
        
        ```
        from yahoo_weather.weather import YahooWeather
        from yahoo_weather.config.units import Unit
        
        data = yahoo_weather.YahooWeather(APP_ID="Your App ID",
                             api_key="Your API KEY",
                             api_secret="Your API secret")
                             
        weather.get_yahoo_weather_by_city("tehran", Unit.celsius)
        print(weather.condition.text)
        print(weather.condition.temperature)
        
        weather.get_yahoo_weather_by_location(35.67194, 51.424438)
        print(weather.condition.text)
        print(weather.condition.temperature)
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
