A simple Python wrapper around WeatherAPI. Get current weather, forecast, history and more...
Project description
Weatherly is a simple package that retrieves weather data from WeatherAPI.com. It provides an easy to use interface to access current and historical weather data for a specific location.
Features
Easy to use,
Intuitive design,
Can provide current weather data aswell as forecast, historical data, future predictions and even more!
Modern and typed Python package,
Support for languages (provided by WeatherAPI)
Code example
import weatherly
client = weatherly.Client(api_key="your WeatherAPI key")
# you can set language to all request, or pass it manually
client.set_language("fr") # lang code
client.set_language("German") # language full name
# getting weather info
current_weather = client.get_current_weather(query="London")
# getting forecast info
forecast = client.get_forecast_data(query="Paris", days=3)
# historical data
history = client.get_historical_data(query="48.8567,2.3508", date="2010-01-01") # query could also be latitude,longitude
# marine data
marine = client.get_marine_data(query="Madrid")
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
weatherly-0.5.1.tar.gz
(17.7 kB
view details)
Built Distribution
weatherly-0.5.1-py3-none-any.whl
(23.6 kB
view details)
File details
Details for the file weatherly-0.5.1.tar.gz
.
File metadata
- Download URL: weatherly-0.5.1.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06e061fc03140d83edca1b06bec4efa18b4f9287fe630ff7cda6358b8646d1d9 |
|
MD5 | 2f9371bbf1fd128dce9e2fa1cebdf3a6 |
|
BLAKE2b-256 | dba087b46f86a912ffe5956cb69a7969e9a58b396cb0f7f2476f40275a7051ab |
File details
Details for the file weatherly-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: weatherly-0.5.1-py3-none-any.whl
- Upload date:
- Size: 23.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d86c4402a6bbe7f834c7df94ba58c2df8a995de545b1478207116df1544d090 |
|
MD5 | e3a89845e7f4268b8a51d316100b15ba |
|
BLAKE2b-256 | 65faf58340a7a25d2eb00a070c2900ebec81f2434647d7f6a1b0a8d6b47ae54b |