Skip to content

Kosmozir/openweathermap_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

openweathermap_api

This python library is an api interface for openweathermap api. As of now it only is able to request current weather data.

Installation

git clone https://github.com/Kosmozir/openweathermap_api.git
cd openweathermap_api
pip install .

Usage

from openweathermap_api import Client

api_key = "[API KEY HERE]"
client = Client(api_key=api_key)

# Get geocoded data for lon. and lat.
client.geocode("14738", "US")

# Returns a JSON object containing the weather data or an optional flag_xml=True argument to return XML data
get_current_weather = client.current_weather()

About

openweathermap api library for python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages