qwen_agent/skills/weather/scripts/weather/__init__.py
2026-03-24 00:40:19 +08:00

41 lines
735 B
Python

# -*- coding: utf-8 -*-
"""
中国天气网天气查询模块
提供全国城市天气预报查询功能
"""
from .query import (
WeatherQuery,
WeatherInfo,
query_weather,
query_current_weather,
search_city,
)
from .city_codes import (
CITY_CODES,
PROVINCE_CODES,
CITY_NAME_TO_CODE,
find_city_code,
get_city_name,
)
__all__ = [
# 查询类
"WeatherQuery",
"WeatherInfo",
# 便捷函数
"query_weather",
"query_current_weather",
"search_city",
# 城市编码
"CITY_CODES",
"PROVINCE_CODES",
"CITY_NAME_TO_CODE",
"find_city_code",
"get_city_name",
]
__version__ = "1.0.0"
__author__ = "Weather Skill"