Skip to main content

Python library for yahoo weather new API

Project 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!

from yahoo_weather.weather import YahooWeather
from yahoo_weather.config.units import Unit

data = YahooWeather(APP_ID="Your App ID",
                     api_key="Your API KEY",
                     api_secret="Your API secret")

data.get_yahoo_weather_by_city("tehran", Unit.celsius)
print(data.condition.text)
print(data.condition.temperature)

data.get_yahoo_weather_by_location(35.67194, 51.424438)
print(data.condition.text)
print(data.condition.temperature)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

yahoo_weather-1.0.8-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file yahoo_weather-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: yahoo_weather-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

File hashes

Hashes for yahoo_weather-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ec6106f48a28911dcd497e96764c3f9db5fa7c3c281692da8050af48603f4d40
MD5 7c3787e094a4998f606d28920391002d
BLAKE2b-256 8454396a1959ec4d6e21198c58c40f348b75581cd6e17f4b1fe1124b0f0e9159

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page