WeatherBox API pip package - ดึงข้อมูลพยากรณ์อากาศ
Project description
weatherbox-tanakit
Package สำหรับดึงข้อมูลพยากรณ์อากาศ สร้างขึ้นเพื่อทดสอบการ publish บน PyPI ออกแบบตามแพตเทิร์น client library เหมือน iapp-ai
การติดตั้ง
pip install weatherbox-tanakit
วิธีใช้งาน
from weatherbox import WeatherAPI
api = WeatherAPI()
# อากาศปัจจุบันจากชื่อเมือง
print(api.get_weather_by_city("Bangkok"))
# หรือระบุพิกัดเอง
print(api.get_current_weather(13.75, 100.50))
# พยากรณ์ล่วงหน้า 3 วัน
print(api.get_forecast(13.75, 100.50, days=3))
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file weatherbox_tanakit-0.1.0.tar.gz.
File metadata
- Download URL: weatherbox_tanakit-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d5e36a03b73b6430bd3cf037c1a7a54776b34f1a5837530cff6f0761f2927b8
|
|
| MD5 |
85a209bb9c537996dbea588a67bbae3d
|
|
| BLAKE2b-256 |
4b478f7faa7b8bde8f4300bd54bb7767b065f68e25eaf5375afdf597d6ab0b32
|
File details
Details for the file weatherbox_tanakit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: weatherbox_tanakit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bb6740cccd0d0d6bb55526a1332be962ac3e0b0c952a2fd421a37f356509580
|
|
| MD5 |
2b429d949873521ded148fdbbd49e740
|
|
| BLAKE2b-256 |
c2d8a6126fdee33fa49e86b921bea0af4f7884313c8fb007df4b6bf317ecaa78
|