A Python package to get weather reports for any location from weather.com. API for weather.com
Project description
Weathercom
A Python package to get weather reports for any location from weather.com. API for weather.com
Installation
Use the package manager pip to install weathercom.
pip install weathercom
Usage
import weathercom
weatherDetails = weathercom.getCityWeatherDetails("bangalore")
weatherDetails = weathercom.getCityWeatherDetails(city="bangalore", queryType="daily-data")
weatherDetails=weathercom.getCityWeatherDetails(city="bangalore", queryType="ten-days-data")
weatherDetails=weathercom.getCityWeatherDetails(city="bangalore", queryType="hourly-data")
weatherDetails=weathercom.getCityWeatherDetails(city="bangalore", queryType="monthly-data")
weatherDetais=weathercom.getCityWeatherDetails(city="bangalore", queryType="particular-date-data", date={'year':'2018','month':'09','date': '19')
Defects to be corrected in next release
Better error handling, particular-date-data can only accept a date in the last five years, imporved user experience
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
weathercom-1.0.5.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for weathercom-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12975c55c0cc0acf800d1cd478b17538c86b10f7ca41731b2cb089a0e6b75265 |
|
MD5 | 0292944b932ee9fa5accc3941ed13691 |
|
BLAKE2b-256 | 6c7d9713eb394f782793fa064e5e268c7a5b1dcfcc625af285ff44ce2cb7c79d |