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.WeatherAPIClient(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")

# historical data
history = client.get_historical_data(query="48.8567,2.3508") # 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

weatherly-0.2.0-py3.11.egg (40.2 kB view details)

Uploaded Source

File details

Details for the file weatherly-0.2.0-py3.11.egg.

File metadata

  • Download URL: weatherly-0.2.0-py3.11.egg
  • Upload date:
  • Size: 40.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for weatherly-0.2.0-py3.11.egg
Algorithm Hash digest
SHA256 fd2c88567ef4b912bdb7d12995ec56c6b785e13b11196dc0e8bae67904565245
MD5 d8b8ba17a34356c1aaac6bd25476526c
BLAKE2b-256 9f69bddcd7614c9da6aa07961cd2c2f1b1b40969e3e60167ed015ff582bb471c

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