forecastvh-0.0.1b3
توضیحات
Let's see the weather outside!
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | forecastvh-0.0.1b3 |
| نام | forecastvh |
| نسخه کتابخانه | 0.0.1b3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ilia Fedorovich |
| ایمیل نویسنده | workplaceilfed@gmail.com |
| آدرس صفحه اصلی | https://github.com/MorningStar-png/weathervh-py |
| آدرس اینترنتی | https://pypi.org/project/forecastvh/ |
| مجوز | - |
# Weather finder
> Find any weather forecast you need

[](https://travis-ci.com/h3xi/forecastvh-py)
[](https://coveralls.io/github/h3xi/forecastvh-py?branch=master)

[](https://codeclimate.com/github/h3xi/forecastvh-py/maintainability)

`forecastvh` finds weather forecast via [OpenWeather API](https://openweathermap.org/current).'
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
```sh
pip3 install forecastvh
```
## Usage
```python
>>> 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](https://black.readthedocs.io/en/stable/) for code formatting and [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0-beta.4/) for commit messages.
## License
[MIT](https://choosealicense.com/licenses/mit/)
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl forecastvh-0.0.1b3:
pip install forecastvh-0.0.1b3.whl
نصب پکیج tar.gz forecastvh-0.0.1b3:
pip install forecastvh-0.0.1b3.tar.gz