Socket
Book a DemoInstallSign in
Socket

async-weather-sdk

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-weather-sdk

Async weather API wrapper for fetching weather and forecast data

0.1.1
pipPyPI
Maintainers
1

Async Weather SDK

PyPI version GitHub Workflow Status for tests Codacy Badge

Async weather API wrapper for fetching weather and forecast data

Core Dependencies

Asyncio: a library to write concurrent code using the async/await syntax.

Aiohttp: an asynchronous HTTP Client/Server for asyncio and Python.

Install

pip install async-weather-sdk

OR

poetry add async-weather-sdk

Usage

QQ Weather API SDK

Get current weather/forecast data by province and city.

from async_weather_sdk.qq import QQWeather

weather = QQWeather()

await weather.fetch_current_weather('北京市', '北京市')
await weather.fetch_weather_forecast('北京市', '北京市', 3)

Query current weather/forecast data with tencent map api key.

from async_weather_sdk.qq import query_current_weather, query_weather_forecast

await query_current_weather('API_KEY', '北京市')
await query_weather_forecast('API_KEY', '39.90469,116.40717')

Keywords

weather

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.