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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file forecastvh-0.0.1b3.tar.gz.

File metadata

  • Download URL: forecastvh-0.0.1b3.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for forecastvh-0.0.1b3.tar.gz
Algorithm Hash digest
SHA256 6999019969d53e0106bbe85459e5367c0119e495647e8f98c443ee09503e1f3b
MD5 00b9fbf3ef7ac90c129f64082c4d1fba
BLAKE2b-256 fa9c964f2a82c140e0c2d5921bef0f5311424d0e4aceb65c00c9ee01c659674a

See more details on using hashes here.

File details

Details for the file forecastvh-0.0.1b3-py3-none-any.whl.

File metadata

  • Download URL: forecastvh-0.0.1b3-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for forecastvh-0.0.1b3-py3-none-any.whl
Algorithm Hash digest
SHA256 f83f4fb7c0f62efe75b95a00146efb23246d2325d928c420c11426db36411951
MD5 fe54086f93b77bcb6cca8a91fb8701e5
BLAKE2b-256 105a142b68cf9f7949779fe1e4b7cb923bb98afdb5e2f813b8a424114322e17b

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