Skip to main content

Python modul for access to yahoo! weather

Example

import logging
from yahooweather import YahooWeather, UNIT_C

logging.basicConfig(level=logging.WARNING)

yweather = YahooWeather(91543049, UNIT_C)
if yweather.updateWeather():
    print("RawData: %s" % str(yweather.RawData))
    print("Units: %s" % str(yweather.Units))
    print("Now: %s" % str(yweather.Now))
    print("Forecast: %s" % str(yweather.Forecast))
    print("Wind: %s" % str(yweather.Wind))
    print("Atmosphere: %s" % str(yweather.Atmosphere))
    print("Astronomy: %s" % str(yweather.Astronomy))

    data = yweather.Now
    print("Weather image from current: %s" %
          yweather.getWeatherImage(data["code"]))

    print("The woeid from Gstaad is: %s" % get_woeid(46.475661, 7.283469))
else:
    print("Can't read data from yahoo!")

Rate Limits

Use of the Yahoo Weather API should not exceed reasonable request volume. Access is limited to 2,000 signed calls per day.

Metadata

Release files for yahooweather 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yahooweather 0.10
File Size Uploaded Provenance Actions
yahooweather-0.10.tar.gz 3.8 kB Without provenance Details for yahooweather-0.10.tar.gz

Release files / yahooweather-0.10.tar.gz

Download URL yahooweather-0.10.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
eace866194cc2483002e10790a82460bb675e197dd321141a978ff3b9fad5d2f
BLAKE2b-256 checksum
How to use checksums
b0507627a5f2aa9d733c409d72e68cd757fbc84dfd0b35cf49ab6c732816a5d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for yahooweather 0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page