Skip to main content

weatherapi.com python access

Project description

weatherapi: Get weather data easily

weatherapi is a simple python library that allows you to get weather data from weatherapi.com, you just need to have a key (free access)

Installation

pip install weatherapi

Using weatherapi

#!/usr/bin/env python

 from weatherapi import WeatherPoint

 # set a point of interest where we want to get weather data from
 key = {VALID KEY}
 latitude = -33.9
 longitude = 50.48

 # Initializing the WeatherPoint
 point = WeatherPoint(latitude, longitude)

 # Setting the key for data access
 point.set_key(key)

 # get current weather data
 point.get_current_weather()

 # access to specific weather data

 point.temp_c # temperature in celsius
 point.wind_kmh # wind in kilometers per hour
 point.localtime # local datetime of the request

 # soon all the docs availables

Visit and contribute to our Github repo https://github.com/martin-conur/weatherapi

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

weatherapi-0.0.4.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

weatherapi-0.0.4-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file weatherapi-0.0.4.tar.gz.

File metadata

  • Download URL: weatherapi-0.0.4.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.2

File hashes

Hashes for weatherapi-0.0.4.tar.gz
Algorithm Hash digest
SHA256 a1809c70402b6d3dac49daf360b6bb7210beaa3eda1bfc226731c2b1b0171902
MD5 882021821f9e91a52b2561913d9942e5
BLAKE2b-256 f102aef894406b57ee2020c8d2ccd0ff5d511fe8f300685b93ecc247ea3da4ee

See more details on using hashes here.

File details

Details for the file weatherapi-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: weatherapi-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.2

File hashes

Hashes for weatherapi-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 07c4788757cb6f050df88884127fd29bf6f27fdd8ed0126c931aaa2e1e665048
MD5 e1c6a5b87c1cdfcf7905143d2261de55
BLAKE2b-256 98797baecd0f15e87993a6f1f7d83a77d7efda7cce546f5c109c73cb5219c4c6

See more details on using hashes here.

Supported by

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