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

作者

xiatianxuan fexcode

声明

本项目使用的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.4.tar.gz (51.7 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.4-py3-none-any.whl (53.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: weatherquery-0.1.4.tar.gz
  • Upload date:
  • Size: 51.7 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.4.tar.gz
Algorithm Hash digest
SHA256 0c5f77992d2ffc6c3a03faf765ccce15452f3e21185a398245b5858926fe35c7
MD5 d1a90e8714626ce59755c3f6d63ca27a
BLAKE2b-256 f4e0d43bd053d33431479f9af56ea286dec99f4881876cc15abccaab9918e214

See more details on using hashes here.

File details

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

File metadata

  • Download URL: weatherquery-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 53.9 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 630001b8d15d7b1b3fd5f12e4f07dad486041080dae59eccd45dc5dc13930bf4
MD5 7f1deeb82ba62a0c0f79abbbc7424f53
BLAKE2b-256 5571a075b7eb62d4ed73b4ea755c22f5790aaa76cc0a785ae9f24e8029164e31

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