Metadata-Version: 2.1
Name: dmi-open-data
Version: 0.0.1
Summary: Simple Python interface to the The Danish Meteorological Institute's (DMI) Open Data API.
Home-page: https://github.com/LasseRegin/dmi-open-data
Author: Lasse Regin Nielsen
Author-email: lasseregin@gmail.com
License: UNKNOWN
Description: 
        # DMI Open Data API
        
        Simple Python interface to the The Danish Meteorological Institute's (DMI) [Open Data API](https://confluence.govcloud.dk/display/FDAPI/Danish+Meteorological+Institute+-+Open+Data).
        
        ## Requirements
        
        * Python 3.6+
        
        Install required packages `pip install -r requirements.txt`.
        
        ## Example
        
        ```python
        from datetime import datetime
        import os
        
        from dmi_open_data import DMIOpenDataClient, Parameter
        
        
        # Get 10 stations
        client = DMIOpenDataClient(api_key=os.getenv('DMI_API_KEY'))
        stations = client.get_stations(limit=10)
        
        # Get all stations
        stations = client.get_stations()
        
        # Get DMI station
        dmi_station = next(
            station
            for station in stations
            if station['name'].lower() == 'dmi')
        
        # Get available parameters
        parameters = client.list_parameters()
        
        # Get temperature observations from DMI station in given time period
        observations = client.get_observations(
            parameter=Parameter.TempDry,
            station_id=dmi_station['stationId'],
            from_time=datetime(2020, 12, 20),
            to_time=datetime(2020, 12, 24),
            limit=1000)
        
        ```
        
        ## Tests
        
        Run tests
        ```bash
        python -m unittest discover tests
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
