Weather and geolocation API
Project description
WeatherLoc
What is WeatherLoc
WeatherLoc is a Pythonic API for weather and geolocation, powered by WeatherAPI
Installation
Use pip package manager to install WeatherLoc.
pip install weatherloc
Usage
This package is designed to be as easy as possible to use. Simply create a client object using your API Key as shown below and all commands are available as methods under the newly created client object
import weatherloc
#create a PyWeather client using your API key from www.weatherapi.com
client = weatherloc.Client("YOUR_KEY_HERE")
weather = client.current("London") # checks and returns current weather
print(weather.condition) # print current weather condition
print(weather.feelslike_c) # print feelslike in celsius
# Check the location using an IP address
my_ip = client.ip_lookup("209.142.68.29")
print(my_ip.country_name)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
MIT
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
WeatherLoc-1.0.1.tar.gz
(10.0 kB
view hashes)
Built Distribution
WeatherLoc-1.0.1-py3-none-any.whl
(15.2 kB
view hashes)
Close
Hashes for WeatherLoc-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dd08a09fd71fae89d5dcf94be6f8dfe69e729e281551af638a73f3b96f46aa5 |
|
MD5 | c43e0b8e5277d7d891ee410f6331e0e2 |
|
BLAKE2b-256 | 2367e869f1740f1311899d7b38f9293f9e1d89acdf6188c274c3d96c355ffb60 |