riweather


Nameriweather JSON
Version 0.6.0 PyPI version JSON
download
home_pagehttps://github.com/ensley-nexant/riweather
SummaryGrab publicly available weather data
upload_time2024-09-06 22:16:16
maintainerNone
docs_urlNone
authorJohn Ensley
requires_python<4.0,>=3.10
licenseApache-2.0
keywords weather noaa
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # riweather

[![Tests](https://github.com/ensley-nexant/riweather/workflows/Tests/badge.svg)](https://github.com/ensley-nexant/riweather/actions?workflow=Tests)
[![Codecov](https://codecov.io/gh/ensley-nexant/riweather/branch/main/graph/badge.svg)](https://codecov.io/gh/ensley-nexant/riweather)
[![Release](https://github.com/ensley-nexant/riweather/actions/workflows/release.yml/badge.svg)](https://github.com/ensley-nexant/riweather/actions/workflows/release.yml)

Grab publicly available weather data with `riweather`. [See the full documentation](https://ensley-nexant.github.io/riweather).

## Installation

Install with pip:

```
pip install riweather
```

To create interactive maps of weather station locations, install the package along with its optional dependencies:

```
pip install riweather[plots]
```

## Usage

Given a latitude and longitude, get a list of weather stations sorted from nearest to farthest from that location.

```python
>>> import riweather

>>> station_rank = riweather.rank_stations(39.98, -105.13, max_distance_m=20000)
```

Select the top station (or a different station):

```python
>>> station = riweather.select_station(station_rank, rank=0)
```

View information about that station:

```python
>>> station.name, station.usaf_id
```

And pull weather data from that station for a certain year.

```python
>>> station.fetch_temp_data(2022)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ensley-nexant/riweather",
    "name": "riweather",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": "weather, noaa",
    "author": "John Ensley",
    "author_email": "jensley@resource-innovations.com",
    "download_url": "https://files.pythonhosted.org/packages/a5/98/13d6de8e2887993b0381454992f17a05c6a1830255f6be66327018fbd37a/riweather-0.6.0.tar.gz",
    "platform": null,
    "description": "# riweather\n\n[![Tests](https://github.com/ensley-nexant/riweather/workflows/Tests/badge.svg)](https://github.com/ensley-nexant/riweather/actions?workflow=Tests)\n[![Codecov](https://codecov.io/gh/ensley-nexant/riweather/branch/main/graph/badge.svg)](https://codecov.io/gh/ensley-nexant/riweather)\n[![Release](https://github.com/ensley-nexant/riweather/actions/workflows/release.yml/badge.svg)](https://github.com/ensley-nexant/riweather/actions/workflows/release.yml)\n\nGrab publicly available weather data with `riweather`. [See the full documentation](https://ensley-nexant.github.io/riweather).\n\n## Installation\n\nInstall with pip:\n\n```\npip install riweather\n```\n\nTo create interactive maps of weather station locations, install the package along with its optional dependencies:\n\n```\npip install riweather[plots]\n```\n\n## Usage\n\nGiven a latitude and longitude, get a list of weather stations sorted from nearest to farthest from that location.\n\n```python\n>>> import riweather\n\n>>> station_rank = riweather.rank_stations(39.98, -105.13, max_distance_m=20000)\n```\n\nSelect the top station (or a different station):\n\n```python\n>>> station = riweather.select_station(station_rank, rank=0)\n```\n\nView information about that station:\n\n```python\n>>> station.name, station.usaf_id\n```\n\nAnd pull weather data from that station for a certain year.\n\n```python\n>>> station.fetch_temp_data(2022)\n```\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Grab publicly available weather data",
    "version": "0.6.0",
    "project_urls": {
        "Documentation": "https://ensley-nexant.github.io/riweather",
        "Homepage": "https://github.com/ensley-nexant/riweather",
        "Repository": "https://github.com/ensley-nexant/riweather"
    },
    "split_keywords": [
        "weather",
        " noaa"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fd1dae509c159b4372a67eeef89d1ec92e4c95f43869a5b8f49297a27b952fec",
                "md5": "85ef80824bc690329b7bde5a5f6b171c",
                "sha256": "70cf443b61067d30316fd6a6695c7863429949095d50f6333890a35737e93eb2"
            },
            "downloads": -1,
            "filename": "riweather-0.6.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "85ef80824bc690329b7bde5a5f6b171c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 2313033,
            "upload_time": "2024-09-06T22:16:14",
            "upload_time_iso_8601": "2024-09-06T22:16:14.223277Z",
            "url": "https://files.pythonhosted.org/packages/fd/1d/ae509c159b4372a67eeef89d1ec92e4c95f43869a5b8f49297a27b952fec/riweather-0.6.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a59813d6de8e2887993b0381454992f17a05c6a1830255f6be66327018fbd37a",
                "md5": "44d810a9fc0435499b29e3175567e8b8",
                "sha256": "136773084307854cf05115a67023e100d0721e5e98bc29a2ba6ad76f4326c8d5"
            },
            "downloads": -1,
            "filename": "riweather-0.6.0.tar.gz",
            "has_sig": false,
            "md5_digest": "44d810a9fc0435499b29e3175567e8b8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 2253884,
            "upload_time": "2024-09-06T22:16:16",
            "upload_time_iso_8601": "2024-09-06T22:16:16.334090Z",
            "url": "https://files.pythonhosted.org/packages/a5/98/13d6de8e2887993b0381454992f17a05c6a1830255f6be66327018fbd37a/riweather-0.6.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-06 22:16:16",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ensley-nexant",
    "github_project": "riweather",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "riweather"
}
        
Elapsed time: 0.31958s