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)
Installing
To install weatherly on your computer Python 3.10 or higher is required. If your python version meets the requirements run:
# Windows
py -3 -m pip install -U weatherly
# MacOS / Linux
python3 -m pip install -U weatherly
Congratulations! Now weatherly is ready to use on your machine.
Code example
import weatherly
client = weatherly.Client(api_key="your WeatherAPI key")
# you can set language to all requests, 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
Built Distribution
File details
Details for the file weatherly-0.10.0.tar.gz
.
File metadata
- Download URL: weatherly-0.10.0.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be74ca5bcb48995e59334942313f7756977cccaa58f6c55347aa791245382496 |
|
MD5 | 8b0521e76f58d0184dd872ec828adadd |
|
BLAKE2b-256 | fe05e46fa322f72ae6f3f14112c1be5f386293a47304cd3c0f0fb63777d32be5 |
File details
Details for the file weatherly-0.10.0-py3-none-any.whl
.
File metadata
- Download URL: weatherly-0.10.0-py3-none-any.whl
- Upload date:
- Size: 29.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc309139448d013abcc431fc90ac1949d5be091ed9ed3e110406ecea6843309c |
|
MD5 | f28853067cce122a9bd9a335412bb662 |
|
BLAKE2b-256 | 60d190e47f9dd7c7b5c7d8f421cdce6c3c8bde01ed8ffc0464b69e16d12fa05f |