Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

Metadata

Release files for forecastvh 0.0.1b3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for forecastvh 0.0.1b3
File Size Uploaded Provenance Actions
forecastvh-0.0.1b3.tar.gz 5.3 kB Without provenance Details for forecastvh-0.0.1b3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for forecastvh 0.0.1b3
File Interpreter ABI Platform Actions
forecastvh-0.0.1b3-py3-none-any.whl Python 3 none any Details for forecastvh-0.0.1b3-py3-none-any.whl

Total release size: 9.0 kB

Release files / forecastvh-0.0.1b3.tar.gz

Download URL forecastvh-0.0.1b3.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6999019969d53e0106bbe85459e5367c0119e495647e8f98c443ee09503e1f3b
BLAKE2b-256 checksum
How to use checksums
fa9c964f2a82c140e0c2d5921bef0f5311424d0e4aceb65c00c9ee01c659674a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.22.0

Release files / forecastvh-0.0.1b3-py3-none-any.whl

Download URL forecastvh-0.0.1b3-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f83f4fb7c0f62efe75b95a00146efb23246d2325d928c420c11426db36411951
BLAKE2b-256 checksum
How to use checksums
105a142b68cf9f7949779fe1e4b7cb923bb98afdb5e2f813b8a424114322e17b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.22.0

Security for forecastvh 0.0.1b3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page