Skip to main content

Let's see the weather outside!

Project description

Weather finder

Find any weather forecast you need

PyPI Build Status Coverage Status GitHub issues Maintainability GitHub

forecastvh finds weather forecast via OpenWeather API.'

Search parameters:

  • city - search string (name, author etc)
  • country - ISO alpha-2 country code (de, fr etc), default: en
  • units - units format (imperial or metric), default: metric

Returned attributes for each forecast (https://openweathermap.org/current#current_JSON):

  • id - City ID (e.g., 420006353)
  • country - Country code (GB)
  • city - City name (London)
  • temp - Temperature (Default: Metric). (19.8)
  • feels_like - Temperature. This temperature parameter accounts for the human perception of weather. (19)
  • pressure - Atmospheric pressure on the ground level, hPa (1023)
  • humidity - Humidity, % (100)
  • wind_speed - Wind speed. Unit Default: meter/sec, Metric: meter/sec, Imperial: miles/hour. (1.5)
  • cloudiness - Cloudiness, % (80)
  • status - Status code, 200 or 404 (200)

Installation

pip3 install forecastvh

Usage

>>> import forecastvh
>>> forecast = forecastvh.get_weather("London")
>>> forecast.country
'GB'
>>> forecast.temp
'18.01'
>>> forecast.cloudiness
'97	'

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Make sure to add or update tests as appropriate.

Use Black for code formatting and Conventional Commits for commit messages.

License

MIT

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

forecastvh-0.0.1b3.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

forecastvh-0.0.1b3-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

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