supermanzer / NDBC

Repository for housing Python code for fetching, parsing, and loading NDBC data into a local Python object for analysis.
MIT License
13 stars 4 forks source link

Use Python DataClass for all Station data #12

Closed supermanzer closed 3 years ago

supermanzer commented 4 years ago

Utilize the dataclass defined in PEP 557 to provide more simplistic dot notation for accessing the various data stored in DataBuoy objects.

This will restrict usage of DataBuoy classes to Python 3.7 and up

supermanzer commented 3 years ago

upon further review we can maintain the flexibility of the dictionary data structure while achieving that notation data access through the use of properties.

This will also avoid any backwards compatibility issues with python versions earlier than 3.7.

supermanzer commented 3 years ago

@property decorated getter functions created for all known data packages