def downloader(func):
    '\n    A decorator to download data inside a table configuration class.\n    '

    def inner(*args, **kwargs):
        table_config = args[0]
        downloader_klass = func(table_config)
        for year in table_config.years_to_download:
            downloader = downloader_klass(table_config, year)
            downloader.download()
            downloader.process()
    return inner
A decorator to download data inside a table configuration class.
def downloader(func):
    '\n    \n    '

    def inner(*args, **kwargs):
        table_config = args[0]
        downloader_klass = func(table_config)
        for year in table_config.years_to_download:
            downloader = downloader_klass(table_config, year)
            downloader.download()
            downloader.process()
    return inner