nautical


Namenautical JSON
Version 4.2.0 PyPI version JSON
download
home_pagehttps://github.com/barbacbd/nautical
SummaryThe nautical package provides users with access to historical and real time nautical information.
upload_time2023-05-22 17:11:44
maintainerBrent Barbachem
docs_urlNone
authorBrent Barbachem
requires_python<4,>=3.6
licenseMIT
keywords nautical noaa ocean water
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center">
  <a href="https://github.com/barbacbd/nautical">
    <img src="https://raw.githubusercontent.com/barbacbd/nautical/master/.images/buoy.jpg" width="256" height="256" border-radius="50%" >
  </a>
  <br>Nautical</br>
</h1>

<h2 align="center">
  
[![Build-Linux](https://github.com/barbacbd/nautical/actions/workflows/python-app-linux.yml/badge.svg)](https://github.com/barbacbd/nautical/actions/workflows/python-app-linux.yml) [![Build-OSX](https://github.com/barbacbd/nautical/actions/workflows/python-app-osx.yml/badge.svg)](https://github.com/barbacbd/nautical/actions/workflows/python-app-osx.yml) [![Build-Windows](https://github.com/barbacbd/nautical/actions/workflows/python-app-windows.yml/badge.svg)](https://github.com/barbacbd/nautical/actions/workflows/python-app-windows.yml)

[![PyPI version fury.io](https://badge.fury.io/py/nautical.svg)](https://pypi.python.org/pypi/nautical/) [![GitHub latest commit](https://badgen.net/github/last-commit/barbacbd/nautical)](https://github.com/barbacbd/nautical/commit/) ![Code Coverage](https://raw.githubusercontent.com/barbacbd/nautical/master/.cov/coverage-badge.svg)

[![Go](https://github.com/barbacbd/nautical/actions/workflows/go.yml/badge.svg)](https://github.com/barbacbd/nautical/actions/workflows/go.yml) [![Go Reference](https://pkg.go.dev/badge/github.com/barbacbd/nautical.svg)](https://pkg.go.dev/github.com/barbacbd/nautical)

# Description

Ahoy! Whether you've got your sea legs under yeh', or you're just looking to get those toes wet, you have discovered Nautical. Nautical is a web scraper that allows its users to parse real time data from [NOAA's](https://www.ndbc.noaa.gov/) buoys. You can try Nautical as a python or GO package! Nautical was created for research and data logging purposes, but there are many more possibilities for users to discover. 


If you would like to view the python documentation follow the [link to nautical's python documentation](https://barbacbd.github.io/nautical/build/html/index.html). 

If you would like to view the GO documentation follow the [link to nautical's GO documentation](https://pkg.go.dev/github.com/barbacbd/nautical).


# Table of Contents

   * [Features](#features)
      * [Buoys](#buoys)
      * [Sources](#sources)
      * [Data Caching](#data-caching)
   * [Prerequisites](#prerequisites)
   * [Casting Off](#casting-off)
   * [Tutorials](#tutorials)
   * [Testing](#testing)
      * [Python](#python)
      * [Golang](#go)
   * [Contributing](#contributing)
      * [Contribution Flow](#contribution-flow)
      * [Suggested Commit Message Format](#suggested-commit-message-format)
   * [Copyright](#copyright)

# Features

The following are a set of features and/or data that can be accessed via the package. 

## Sources

A source is a group of buoys. The source can be thought of as a sponsor or owner of the group/set of buoys. The source may be used as an indicator of the type of data that is stored in a buoy object. 

**Note**: The `TAO` and `Tsunami` sources are not available in any regard.


## Buoys

A buoy _may_ contain, but are not limitted to, any of the following variables.

| Data | Abbreviation |Units |
| ---- | ---- | ---- |
| Wind Speed | wspd | Knots |
| Gust | gst | Knots |
| Wave Height | wvht | Feet |
| Dominant Wave Period | dpd | Seconds |
| Average Wave Period | apd | Seconds |
| Pressure | pres | PSI |
| Pressure Tendency | ptdy | PSI |
| Air Temperature | atmp | Fahrenheit |
| Water Temperature | wtmp | Fahrenheit |
| Dew Point | dewp | Fahrenheigt |
| Salinity | sal | PSU |
| Visibility | vis | Nautical Miles |
| Tide | tide | Feet |
| Swell Height | swh | Feet |
| Swell Wave Period | swp | Seconds |
| Wind Wave Height | wwh | Feet |
| Wind Wave Period | wwp | Seconds |
| Ocean Temperature | otmp | Fahrenheit |
| Wind Speed 10m Interval | wspd10m | Knots |
| Wind Speed 20m Interval | wspd10m | Knots |
| Depth | depth | Feet |

## Data Caching

The cache can be used to save and load information about buoys and sources. The feature enables users to locally store and retrieve older information. NOAA refreshes the online data roughly every 30 minutes. The cache package can be used to throttle data retrieval calls to ensure the user is not wasting system resources when data has not been updated by NOAA.

- Create cache files
- Copy cache files to new names (with timestamps or custom names)
- Load Cache files to Nautical Objects.

**Note**: _[Nautical cache](https://github.com/barbacbd/nautical/blob/master/nautical/cache/) was added in version 3.1.0_.

# Prerequisites 

The python package requires `python>=3.6`. You can use a package manager to install a version of python that satifies the requirements, or you may manually install python from the [website](https://www.python.org/downloads/).
<br>
<br>
The GO package requires `golang>=1.18`. To install go please visit the official [website](https://go.dev/doc/install).

**Note**: _The GO requirement is not strict, but previous versions have Not been tested_.

# Casting Off

- Ensure your system meets the [prerequisites](#prerequisites).
- Clone or Fork the repository.
- Run the [package tests](#testing)

# Tutorials

Follow the link to view the [tutorials for the python package](https://github.com/barbacbd/nautical/blob/master/user/docs/PythonTutorials.md).

Follow the link to view the [tutorials for the go package](https://github.com/barbacbd/nautical/blob/master/user/docs/GoTutorials.md).

# Testing

## Python 

All python tests are located in the [tests](https://github.com/barbacbd/nautical/tree/master/tests) directory.

```bash
python 3.x -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install -r test_requirements.txt
pytest --cov=tests
```

**Note**: _The virtual environment and coverage are optional_.

## GO

All golang tests are located with the golang source in [pkg](https://github.com/barbacbd/nautical/tree/master/pkg). The following should be executed from the project home directory.

```bash
go get -u
go test -v ./...
```

# Contributing

For more information on contributing to the project, please see [contributing](https://github.com/barbacbd/nautical/tree/master/.github/CONTRIBUTING.md).

# Copyright

Copyright © 2022, Brent Barbachem. Released under the [MIT License](https://raw.githubusercontent.com/barbacbd/nautical/master/LICENSE.txt).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/barbacbd/nautical",
    "name": "nautical",
    "maintainer": "Brent Barbachem",
    "docs_url": null,
    "requires_python": "<4,>=3.6",
    "maintainer_email": "barbacbd@gmail.com",
    "keywords": "nautical,noaa,ocean,water",
    "author": "Brent Barbachem",
    "author_email": "barbacbd@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/bc/f7/ea330eeb59a04fdcdbb289b19452459585eca9c0d3b29f1837fba7292c4d/nautical-4.2.0.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\">\n  <a href=\"https://github.com/barbacbd/nautical\">\n    <img src=\"https://raw.githubusercontent.com/barbacbd/nautical/master/.images/buoy.jpg\" width=\"256\" height=\"256\" border-radius=\"50%\" >\n  </a>\n  <br>Nautical</br>\n</h1>\n\n<h2 align=\"center\">\n  \n[![Build-Linux](https://github.com/barbacbd/nautical/actions/workflows/python-app-linux.yml/badge.svg)](https://github.com/barbacbd/nautical/actions/workflows/python-app-linux.yml) [![Build-OSX](https://github.com/barbacbd/nautical/actions/workflows/python-app-osx.yml/badge.svg)](https://github.com/barbacbd/nautical/actions/workflows/python-app-osx.yml) [![Build-Windows](https://github.com/barbacbd/nautical/actions/workflows/python-app-windows.yml/badge.svg)](https://github.com/barbacbd/nautical/actions/workflows/python-app-windows.yml)\n\n[![PyPI version fury.io](https://badge.fury.io/py/nautical.svg)](https://pypi.python.org/pypi/nautical/) [![GitHub latest commit](https://badgen.net/github/last-commit/barbacbd/nautical)](https://github.com/barbacbd/nautical/commit/) ![Code Coverage](https://raw.githubusercontent.com/barbacbd/nautical/master/.cov/coverage-badge.svg)\n\n[![Go](https://github.com/barbacbd/nautical/actions/workflows/go.yml/badge.svg)](https://github.com/barbacbd/nautical/actions/workflows/go.yml) [![Go Reference](https://pkg.go.dev/badge/github.com/barbacbd/nautical.svg)](https://pkg.go.dev/github.com/barbacbd/nautical)\n\n# Description\n\nAhoy! Whether you've got your sea legs under yeh', or you're just looking to get those toes wet, you have discovered Nautical. Nautical is a web scraper that allows its users to parse real time data from [NOAA's](https://www.ndbc.noaa.gov/) buoys. You can try Nautical as a python or GO package! Nautical was created for research and data logging purposes, but there are many more possibilities for users to discover. \n\n\nIf you would like to view the python documentation follow the [link to nautical's python documentation](https://barbacbd.github.io/nautical/build/html/index.html). \n\nIf you would like to view the GO documentation follow the [link to nautical's GO documentation](https://pkg.go.dev/github.com/barbacbd/nautical).\n\n\n# Table of Contents\n\n   * [Features](#features)\n      * [Buoys](#buoys)\n      * [Sources](#sources)\n      * [Data Caching](#data-caching)\n   * [Prerequisites](#prerequisites)\n   * [Casting Off](#casting-off)\n   * [Tutorials](#tutorials)\n   * [Testing](#testing)\n      * [Python](#python)\n      * [Golang](#go)\n   * [Contributing](#contributing)\n      * [Contribution Flow](#contribution-flow)\n      * [Suggested Commit Message Format](#suggested-commit-message-format)\n   * [Copyright](#copyright)\n\n# Features\n\nThe following are a set of features and/or data that can be accessed via the package. \n\n## Sources\n\nA source is a group of buoys. The source can be thought of as a sponsor or owner of the group/set of buoys. The source may be used as an indicator of the type of data that is stored in a buoy object. \n\n**Note**: The `TAO` and `Tsunami` sources are not available in any regard.\n\n\n## Buoys\n\nA buoy _may_ contain, but are not limitted to, any of the following variables.\n\n| Data | Abbreviation |Units |\n| ---- | ---- | ---- |\n| Wind Speed | wspd | Knots |\n| Gust | gst | Knots |\n| Wave Height | wvht | Feet |\n| Dominant Wave Period | dpd | Seconds |\n| Average Wave Period | apd | Seconds |\n| Pressure | pres | PSI |\n| Pressure Tendency | ptdy | PSI |\n| Air Temperature | atmp | Fahrenheit |\n| Water Temperature | wtmp | Fahrenheit |\n| Dew Point | dewp | Fahrenheigt |\n| Salinity | sal | PSU |\n| Visibility | vis | Nautical Miles |\n| Tide | tide | Feet |\n| Swell Height | swh | Feet |\n| Swell Wave Period | swp | Seconds |\n| Wind Wave Height | wwh | Feet |\n| Wind Wave Period | wwp | Seconds |\n| Ocean Temperature | otmp | Fahrenheit |\n| Wind Speed 10m Interval | wspd10m | Knots |\n| Wind Speed 20m Interval | wspd10m | Knots |\n| Depth | depth | Feet |\n\n## Data Caching\n\nThe cache can be used to save and load information about buoys and sources. The feature enables users to locally store and retrieve older information. NOAA refreshes the online data roughly every 30 minutes. The cache package can be used to throttle data retrieval calls to ensure the user is not wasting system resources when data has not been updated by NOAA.\n\n- Create cache files\n- Copy cache files to new names (with timestamps or custom names)\n- Load Cache files to Nautical Objects.\n\n**Note**: _[Nautical cache](https://github.com/barbacbd/nautical/blob/master/nautical/cache/) was added in version 3.1.0_.\n\n# Prerequisites \n\nThe python package requires `python>=3.6`. You can use a package manager to install a version of python that satifies the requirements, or you may manually install python from the [website](https://www.python.org/downloads/).\n<br>\n<br>\nThe GO package requires `golang>=1.18`. To install go please visit the official [website](https://go.dev/doc/install).\n\n**Note**: _The GO requirement is not strict, but previous versions have Not been tested_.\n\n# Casting Off\n\n- Ensure your system meets the [prerequisites](#prerequisites).\n- Clone or Fork the repository.\n- Run the [package tests](#testing)\n\n# Tutorials\n\nFollow the link to view the [tutorials for the python package](https://github.com/barbacbd/nautical/blob/master/user/docs/PythonTutorials.md).\n\nFollow the link to view the [tutorials for the go package](https://github.com/barbacbd/nautical/blob/master/user/docs/GoTutorials.md).\n\n# Testing\n\n## Python \n\nAll python tests are located in the [tests](https://github.com/barbacbd/nautical/tree/master/tests) directory.\n\n```bash\npython 3.x -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\npip install -r test_requirements.txt\npytest --cov=tests\n```\n\n**Note**: _The virtual environment and coverage are optional_.\n\n## GO\n\nAll golang tests are located with the golang source in [pkg](https://github.com/barbacbd/nautical/tree/master/pkg). The following should be executed from the project home directory.\n\n```bash\ngo get -u\ngo test -v ./...\n```\n\n# Contributing\n\nFor more information on contributing to the project, please see [contributing](https://github.com/barbacbd/nautical/tree/master/.github/CONTRIBUTING.md).\n\n# Copyright\n\nCopyright \u00a9 2022, Brent Barbachem. Released under the [MIT License](https://raw.githubusercontent.com/barbacbd/nautical/master/LICENSE.txt).\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "The nautical package provides users with access to historical and real time nautical information.",
    "version": "4.2.0",
    "project_urls": {
        "Homepage": "https://github.com/barbacbd/nautical"
    },
    "split_keywords": [
        "nautical",
        "noaa",
        "ocean",
        "water"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4f44fe6c516551181f8969f846b7729a74d659da2837ad3f2fd393ab5470951b",
                "md5": "c6241c46b8d129dca3ae167cb4412885",
                "sha256": "9b4d02914ae4ecdf039e4f92f90482779be77185f9a545c3290a47eb700f0a8b"
            },
            "downloads": -1,
            "filename": "nautical-4.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c6241c46b8d129dca3ae167cb4412885",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4,>=3.6",
            "size": 32358,
            "upload_time": "2023-05-22T17:11:42",
            "upload_time_iso_8601": "2023-05-22T17:11:42.519514Z",
            "url": "https://files.pythonhosted.org/packages/4f/44/fe6c516551181f8969f846b7729a74d659da2837ad3f2fd393ab5470951b/nautical-4.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bcf7ea330eeb59a04fdcdbb289b19452459585eca9c0d3b29f1837fba7292c4d",
                "md5": "0e7720ad79ea81cf697b18f8cac9596e",
                "sha256": "8ff28f0438f9c8fedf2a75ea889276d016ddb2e913f90e0a54d9610aec05d01e"
            },
            "downloads": -1,
            "filename": "nautical-4.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0e7720ad79ea81cf697b18f8cac9596e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3.6",
            "size": 39465,
            "upload_time": "2023-05-22T17:11:44",
            "upload_time_iso_8601": "2023-05-22T17:11:44.489254Z",
            "url": "https://files.pythonhosted.org/packages/bc/f7/ea330eeb59a04fdcdbb289b19452459585eca9c0d3b29f1837fba7292c4d/nautical-4.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-22 17:11:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "barbacbd",
    "github_project": "nautical",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "test_requirements": [],
    "lcname": "nautical"
}
        
Elapsed time: 0.18138s