Skip to content

Matmonsen/py-yr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-yr

Installation

pip install git+git://github.com/Matmonsen/py-yr.git#egg=py-yr

Usage

from py_yr.yr import Yr

yr = Yr("Norway/Hordaland/Bergen/Bergen/", "en", "standard")
yr.download()


# Get weather data in different formats

# Returns a nested dict with weather data
yr.get_as_dict()

# Returns the original weather data
yr.get_as_xml() # same as yr.source_data

# Returns an WeatherData object containing the forecast
yr.get_as_object()

See also

Repository with css web font for yr weather symbols

About

Python wrapper for Yr.no weather api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages