<gh_stars>0
""""""
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from requests import get
from observation import Observation

class NowDawn:
    """
    Entry point class providing ad-hoc API clients for each NowDawn web API.
    :param api_key: a NowDawn API key
    :type api_key: str
    """

    def __init__(self, api_key):
        """"""
        assert api_key is not None, 'API Key must be set'
        self.api_key = api_key

    def lat_lon(self, lat=None, lon=None, metric_units=True):
        """"""
        url = "https://api.nowdawn.com/" # TODO
        response = get(url)
        # TODO error catching - eg. network
        return Observation(latitude=lat, longitude=lon) # TODO load parameters

    def city(self, city, country, metric_units=True):
        """"""
        url = "https://api.nowdawn.com/" # TODO
        response = get(url)
        # TODO error catching - eg. network
        return Observation() # TODO load parameters

    def station(self, station_id):
        """"""
        url = "https://api.nowdawn.com/" # TODO
        response = get(url)
        # TODO error catching - eg. network
        return Observation() # TODO load parameters

""""""
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from requests import get
from observation import Observation

class NowDawn:
    """
    Entry point class providing ad-hoc API clients for each NowDawn web API.
    :param api_key: a NowDawn API key
    :type api_key: str
    """

    def __init__(self, api_key):
        """"""
        assert api_key is not None, 'API Key must be set'
        self.api_key = api_key

    def lat_lon(self, lat=None, lon=None, metric_units=True):
        """"""
        url = "https://api.nowdawn.com/" # TODO
        response = get(url)
        # TODO error catching - eg. network
        return Observation(latitude=lat, longitude=lon) # TODO load parameters

    def city(self, city, country, metric_units=True):
        """"""
        url = "https://api.nowdawn.com/" # TODO
        response = get(url)
        # TODO error catching - eg. network
        return Observation() # TODO load parameters

    def station(self, station_id):
        """"""
        url = "https://api.nowdawn.com/" # TODO
        response = get(url)
        # TODO error catching - eg. network
        return Observation() # TODO load parameters
#!/usr/bin/env python # -*- coding: utf-8 -*- Entry point class providing ad-hoc API clients for each NowDawn web API.     :param api_key: a NowDawn API key     :type api_key: str # TODO # TODO error catching - eg. network # TODO load parameters # TODO # TODO error catching - eg. network # TODO load parameters # TODO # TODO error catching - eg. network # TODO load parameters