Exemplo n.º 1
0
def dataset(spec_area, spec_dataset):
    """returns the IstatDataset identified by ``spec_dataset``` (name of the dataset)
    contained into the IstatArea identified by ```spec_area``` (name of the area)
    :param spec_area: name of istat area
    :param spec_dataset: name of istat dataset
    """
    global __istat__
    if __istat__ is None:
        downloader = jsonstat.Downloader(cache_dir="./istat_cached", time_to_live=None)
        __istat__ = IstatRoot(downloader)
    return __istat__.dataset(spec_area, spec_dataset)
Exemplo n.º 2
0
def dataset(spec_area, spec_dataset):
    """returns the IstatDataset identified by ``spec_dataset``` (name of the dataset)
    contained into the IstatArea identified by ```spec_area``` (name of the area)
    :param spec_area: name of istat area
    :param spec_dataset: name of istat dataset
    """
    global __istat__
    if __istat__ is None:
        downloader = jsonstat.Downloader(cache_dir="./istat_cached",
                                         time_to_live=None)
        __istat__ = IstatRoot(downloader)
    return __istat__.dataset(spec_area, spec_dataset)