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
File details
Details for the file weather-ch-0.0.4.tar.gz
.
File metadata
- Download URL: weather-ch-0.0.4.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fb9634a4336d4e6937b976bb492d7ef076a8ec58bc39dd0c72b49880d34e8c8 |
|
MD5 | dbbdabed8d685de2d0f9bbf939a0b47d |
|
BLAKE2b-256 | c89740547f7a30f52ec8061524c9895f5d2f1d1b379f28115eec96cae472fcb1 |
File details
Details for the file weather_ch-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: weather_ch-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7999b251f7958965808e7442789bb191a38f9a82323d7f32003c254d00e5355 |
|
MD5 | 4699a278e6049dc0361b3a46fd0b7d69 |
|
BLAKE2b-256 | 78557c32eef28babed92f59f7bc06c03111aa99c45c200aae192d53f3ff22bfb |