WeatherQuery
一个轻量快捷的天气查询Python库
中文 / English
安装
通过pip命令直接安装:
pip install git+https://gitee.com/xiatianxuan/weatherquery
使用
- 导入
weatherquery库
import weatherquery as wq
- 创建获取器
q = wq.Querier("北京") # 将北京替换成你想查询的城市名
- 查询
print(q.today) # 打印今日天气
查询其他信息请参考
src/weatherquery/core.py
作者
声明
本项目使用的API由 http://t.weather.itboy.net/api/weather/city/ 免费提供,仅供个人技术用途,禁止商用,禁止滥用。因滥用本项目而产生的任何负面影响与本项目无关!
Metadata
Release files for weatherquery 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| weatherquery-0.1.4.tar.gz | 51.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| weatherquery-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 105.6 kB
Release files / weatherquery-0.1.4.tar.gz
| Download URL | weatherquery-0.1.4.tar.gz |
|---|---|
| Size | 51.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c5f77992d2ffc6c3a03faf765ccce15452f3e21185a398245b5858926fe35c7
|
|
BLAKE2b-256 checksum How to use checksums |
f4e0d43bd053d33431479f9af56ea286dec99f4881876cc15abccaab9918e214
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / weatherquery-0.1.4-py3-none-any.whl
| Download URL | weatherquery-0.1.4-py3-none-any.whl |
|---|---|
| Size | 53.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
630001b8d15d7b1b3fd5f12e4f07dad486041080dae59eccd45dc5dc13930bf4
|
|
BLAKE2b-256 checksum How to use checksums |
5571a075b7eb62d4ed73b4ea755c22f5790aaa76cc0a785ae9f24e8029164e31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|