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.8.0.tar.gz
.
File metadata
- Download URL: weatherly-0.8.0.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd1f58dbe1f3ef11c03b18e5e373e6e040876979130038a175f96910510eb56e |
|
MD5 | a334582e7f381ddb51d236a1358fd864 |
|
BLAKE2b-256 | bfd5f11732dca49a812bbfc7df4a1c96ea2749f6be998eb4f8f5c3ca7bb43ee4 |
File details
Details for the file weatherly-0.8.0-py3-none-any.whl
.
File metadata
- Download URL: weatherly-0.8.0-py3-none-any.whl
- Upload date:
- Size: 27.0 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 | e19e6e10aed9fba10d3629ce8bab544bd6d7afd053b00717911a9d35d2ce16be |
|
MD5 | 16d452483c252084d7fadfaabe1956e1 |
|
BLAKE2b-256 | fc74947129409fa8ff4411b05cca2f17b319ded50740c32558c4f462cc47b501 |