Skip to main content

A simple Python wrapper around WeatherAPI. Get current weather, forecast, history and more...

Project description

Weatherly license Weatherly version on PyPI Supported Python versions Build status

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


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.6.0.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

weatherly-0.6.0-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file weatherly-0.6.0.tar.gz.

File metadata

  • Download URL: weatherly-0.6.0.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for weatherly-0.6.0.tar.gz
Algorithm Hash digest
SHA256 55fb0cf0f2c45d8cc84b453851c59efaa3f5af350cca99537a0867ecd58cca1c
MD5 64eced4bc36e1f663b89c8a06d9a190a
BLAKE2b-256 f7a7c340d454a04046e16d8c3c4bb377ae8c00abf6ac357a9afd28e051e7161b

See more details on using hashes here.

File details

Details for the file weatherly-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: weatherly-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for weatherly-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13fd58d8eb220bf8e60ba6be225f881c86e5b791d8a3badf460e34d6c0fd51b3
MD5 5363cbea5bdaba9a952375b51b86d3bd
BLAKE2b-256 cb9e771c127642486726bdf91e21d76f2725e63f9f2e387117777cb8639a5327

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page