yweather
About
yweather is a Python module that provides an interface to the Yahoo! Weather RSS feed.
International Support
>>> client.fetch_woeid("Paris, France")
'615702'
>>> client.fetch_woeid("Seattle, Washington")
'2490383'
Location and weather data is not limited to a single country. Fetch data for any location that is available on Yahoo! Weather.
Different countries use different measurement systems (unfortunately). Fetch data according to United States customary units or the metric system.
>>> paris_weather = client.fetch_weather("615702", metric=True)
>>> seattle_weather = client.fetch_weather("2490383", metric=False)
Data is Returned as a Dict
>>> norfolk_weather = client.fetch_weather("2460389")
>>> norfolk_weather["astronomy"]["sunrise"]
'7:18 am'
>>> norfolk_weather["condition"]["text"]
'Partly Cloudy'
Weather data is returned as a Python dict, not as an object of a confusing class.
No API Keys or Signup Needed
Unlike many weather APIs, Yahoo! Weather’s RSS feed doesn’t require sign ups, API keys, or special authorization to fetch and use their data. All you have to do is follow their Terms of Use.
No Manual ID Lookups
>>> client.fetch_woeid("Raleigh, North Carolina")
'2478307'
>>> client.fetch_lid("2379574")
'USIL0228'
yweather doesn’t assume you know location identifiers off the top of your head. You can call the fetch_woeid or fetch_lid methods to lookup a location’s WOEID or LID. WOEID is Yahoo! Weather’s location identifier. LID is The Weather Channel’s location identifier.
5-day Forecast Support
>>> london_weather = client.fetch_weather("UKXX0085")
>>> len(london_weather["forecast"])
5
By using a The Weather Channel Location ID (LID), you can fetch a location’s 5-day weather forecast. A little warning though – it’s using an undocumented API. If you aren’t up for it, you can still get the 2-day forecast using a WOEID.
Documentation
yweather includes complete and easy-to-read documentation. Check it out for a gentle introduction or the full API details.
Bug/Issues Tracker
yweather uses its GitHub Issues page to track bugs, feature requests, and support questions.
License
yweather is released under the OSI-approved MIT License. See the file LICENSE.txt for more information.
Metadata
Release files for yweather 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| yweather-0.1.1.tar.gz | 16.7 kB | Without provenance | Details |
Release files / yweather-0.1.1.tar.gz
| Download URL | yweather-0.1.1.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd7852d35e71c253b7f838783b6631aa8101d1bf5fb2357ce5536c8227fbe5df
|
|
BLAKE2b-256 checksum How to use checksums |
7e67c905c0a0dad177fa40cd412f18ea22835725412c2b0823de6151047e7e41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for yweather 0.1.1
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.