Python library for weather information.
Project description
Project Portfolio: https://github.com/calebyhan/CalebHan
weather-ch
Python library for weather information. Docker library for WeatherAPI. This project is unaffiliated with the official company.
Data from WeatherAPI.
Installation
Use the package manager pip to install weather-ch.
pip install weather-ch
Usage
import weather
weatherAPI = weather.API("API KEY HERE")
# returns current weather in London
weatherAPI.current("London")
# returns 3 day forecast of London
weatherAPI.forecast("London")
Documentation
weather.API(api_key)
weather.current(q, aqi="no", lang=-1)
weather.forecast(q, days=3, alerts="no", aqi="no", lang=-1)
weather.history(q, dt=-1, lang=-1)
weather.future(q, dt=-1, lang=-1)
weather.ip(q, lang=-1)
weather.astro(q, dt=-1, lang=-1)
weather.sports(q, lang=-1)
weather.timezone(q, lang=-1)
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for weather_ch-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2856a46f4ae9a49bc317047f5fbae390e27a2541e4a30d473fb09c54926227a9 |
|
MD5 | 0a85cfb4a33c62172455cdb39dcd222c |
|
BLAKE2b-256 | bc0f02cbf04c9dcbc7043415587d0a389911a4b5654a4069697f60eee02f1600 |