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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file forecastvh-0.0.1b3.tar.gz.
File metadata
- Download URL: forecastvh-0.0.1b3.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6999019969d53e0106bbe85459e5367c0119e495647e8f98c443ee09503e1f3b
|
|
| MD5 |
00b9fbf3ef7ac90c129f64082c4d1fba
|
|
| BLAKE2b-256 |
fa9c964f2a82c140e0c2d5921bef0f5311424d0e4aceb65c00c9ee01c659674a
|
File details
Details for the file forecastvh-0.0.1b3-py3-none-any.whl.
File metadata
- Download URL: forecastvh-0.0.1b3-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f83f4fb7c0f62efe75b95a00146efb23246d2325d928c420c11426db36411951
|
|
| MD5 |
fe54086f93b77bcb6cca8a91fb8701e5
|
|
| BLAKE2b-256 |
105a142b68cf9f7949779fe1e4b7cb923bb98afdb5e2f813b8a424114322e17b
|