Let's see the weather outside!
Project description
Weather finder
Find any weather forecast you need
forecastvh
finds weather forecast via OpenWeather API.'
Search parameters:
- city - search string (name, author etc)
- country - ISO alpha-2 country code (de, fr etc), default: en
- units - units format (imperial or metric), default: metric
Returned attributes for each forecast (https://openweathermap.org/current#current_JSON):
- id - City ID (e.g.,
420006353
) - country - Country code (
GB
) - city - City name (
London
) - temp - Temperature (Default: Metric). (
19.8
) - feels_like - Temperature. This temperature parameter accounts for the human perception of weather. (
19
) - pressure - Atmospheric pressure on the ground level, hPa (
1023
) - humidity - Humidity, % (
100
) - wind_speed - Wind speed. Unit Default: meter/sec, Metric: meter/sec, Imperial: miles/hour. (
1.5
) - cloudiness - Cloudiness, % (
80
) - status - Status code, 200 or 404 (
200
)
Installation
pip3 install forecastvh
Usage
>>> import forecastvh
>>> forecast = forecastvh.get_weather("London")
>>> forecast.country
'GB'
>>> forecast.temp
'18.01'
>>> forecast.cloudiness
'97 '
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Make sure to add or update tests as appropriate.
Use Black for code formatting and Conventional Commits for commit messages.
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
forecastvh-0.0.1b3.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for forecastvh-0.0.1b3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f83f4fb7c0f62efe75b95a00146efb23246d2325d928c420c11426db36411951 |
|
MD5 | fe54086f93b77bcb6cca8a91fb8701e5 |
|
BLAKE2b-256 | 105a142b68cf9f7949779fe1e4b7cb923bb98afdb5e2f813b8a424114322e17b |