Skip to main content

这是一个轻量级的快捷的天气查询Python库

Project description

WeatherQuery

一个轻量快捷的天气查询Python库

中文 / English

安装

通过pip命令直接安装:

pip install git+https://gitee.com/xiatianxuan/weatherquery

使用

  1. 导入weatherquery
import weatherquery as wq
  1. 创建获取器
q = wq.Querier("北京") # 将北京替换成你想查询的城市名
  1. 查询
print(q.today) # 打印今日天气

查询其他信息请参考 src/weatherquery/core.py

声明

本项目使用的API由 http://t.weather.itboy.net/api/weather/city/ 免费提供,仅供个人技术用途,禁止商用,禁止滥用。因滥用本项目而产生的任何负面影响与本项目无关!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

weatherquery-0.1.0.tar.gz (51.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

weatherquery-0.1.0-py3-none-any.whl (53.6 kB view details)

Uploaded Python 3

File details

Details for the file weatherquery-0.1.0.tar.gz.

File metadata

  • Download URL: weatherquery-0.1.0.tar.gz
  • Upload date:
  • Size: 51.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for weatherquery-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8cc824617b6dd98ad3da0d39772052927ed5b1d42451cb4f9c0a7c1be231015d
MD5 5c0b5a9808eb472815dee8a1bd655551
BLAKE2b-256 f5e3f1beb2af84d0dc749b6851993e26d84adb184822c12c55c8f812b245ccaa

See more details on using hashes here.

File details

Details for the file weatherquery-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: weatherquery-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 53.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for weatherquery-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75f25c334f52b3379f92f64d87b19155590f92181bb5db2fca443ee7931508fc
MD5 b00bbd1f890754b578f47509ff919893
BLAKE2b-256 5f19c6fe1cef057d5ec80e487bb6e1d031841891b54b98539d4cbb7e652ffbd8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page