aiopywttr-2.1.0
توضیحات
Asynchronous wrapper for wttr.in API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | aiopywttr-2.1.0 |
| نام | aiopywttr |
| نسخه کتابخانه | 2.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | monosans |
| ایمیل نویسنده | hsyqixco@protonmail.com |
| آدرس صفحه اصلی | https://github.com/monosans/aiopywttr |
| آدرس اینترنتی | https://pypi.org/project/aiopywttr/ |
| مجوز | MIT |
# aiopywttr
[](https://github.com/monosans/aiopywttr/actions/workflows/ci.yml)
[](https://results.pre-commit.ci/latest/github/monosans/aiopywttr/main)
[](https://codecov.io/gh/monosans/aiopywttr)
Asynchronous wrapper for [wttr.in](https://wttr.in) weather forecast API.
Synchronous version [here](https://github.com/monosans/pywttr).
## Installation
```bash
python -m pip install aiopywttr
```
## Example
This example prints the average temperature in New York today.
```python
import asyncio
from aiopywttr import Wttr
async def main():
wttr = Wttr("New York")
forecast = await wttr.en()
print(forecast.weather[0].avgtemp_c)
asyncio.run(main())
```
Other languages may also be used instead of `en`. For a complete list of supported languages, follow the code completion in your IDE.
## Documentation
There is no documentation, just follow the code completion in your IDE.
For an example of type annotations, see `pywttr-models` [README.md](https://github.com/monosans/pywttr-models#usage-for-type-annotation).
## Recommended IDEs
- [Visual Studio Code](https://code.visualstudio.com) (with [Python extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python))
- [PyCharm](https://jetbrains.com/pycharm)
## License
[MIT](https://github.com/monosans/aiopywttr/blob/main/LICENSE)
نیازمندی
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | aiohttp |
| >=1.1,<2.0 | pywttr-models |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7.2,<4.0.0 | Python |
نحوه نصب
نصب پکیج whl aiopywttr-2.1.0:
pip install aiopywttr-2.1.0.whl
نصب پکیج tar.gz aiopywttr-2.1.0:
pip install aiopywttr-2.1.0.tar.gz