appyweather-1.0.2
توضیحات
24h Weather Forecast Data
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | appyweather-1.0.2 |
| نام | appyweather |
| نسخه کتابخانه | 1.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Kostas Deligiannis |
| ایمیل نویسنده | pr0fil3r@gmail.com |
| آدرس صفحه اصلی | https://example.com |
| آدرس اینترنتی | https://pypi.org/project/appyweather/ |
| مجوز | MIT |
## Appyweather
Appyweather is a Python package that provide you with 24-hour weather forecast information for any city
or location, and it is mainly created for educational reasons.
All weather data are provided through the 'openweathermap' api service.
- Get your own api-key from: https://openweathermap.org
- Api-key might take a few hours to be activated.
## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install appyweather.
```bash
pip install appyweather
```
## Usage
```python
from appyweather import Weather
# using a city name
weather = Weather(api_key='yourapikeyhere', city='Athens')
# using latitude/longitude coordinates + units (optional)
weather1 = Weather(api_key='yourapikeyhere', lat=37.98, lon=23.72, units='metric')
# get full 3-hour weather data for the next 24 hours
weather.next_24_hours()
# get basic 3-hour weather data for the next 24 hours
weather1.next_24_hours_basic()
```
- Sample url for sky condition icons: http://openweathermap.org/img/wn/10d@2x.png
## License
[MIT](https://choosealicense.com/licenses/mit/)
نحوه نصب
نصب پکیج whl appyweather-1.0.2:
pip install appyweather-1.0.2.whl
نصب پکیج tar.gz appyweather-1.0.2:
pip install appyweather-1.0.2.tar.gz