imf_reader.config

Configuration for the IMF reader.

Attributes

logger

shell_handler

fmt_file

fmt_shell

shell_formatter

Exceptions

NoDataError

This is a custom exception that is raised when no UIS data exists

UnexpectedFileError

This is a custom exception that is raised when an unexpected file is found in the zip folder

BulkPayloadCorruptError

Raised when a cached or freshly-downloaded bulk payload (e.g., the WEO SDMX zip) fails

Module Contents

exception imf_reader.config.NoDataError

Bases: Exception

This is a custom exception that is raised when no UIS data exists

exception imf_reader.config.UnexpectedFileError

Bases: Exception

This is a custom exception that is raised when an unexpected file is found in the zip folder or if there is an issue with the file structure

exception imf_reader.config.BulkPayloadCorruptError

Bases: Exception

Raised when a cached or freshly-downloaded bulk payload (e.g., the WEO SDMX zip) fails integrity validation. The corrupt cache entry is removed before this is raised, so the next call re-downloads cleanly.

imf_reader.config.logger
imf_reader.config.shell_handler
imf_reader.config.fmt_file = '%(levelname)s: %(message)s'
imf_reader.config.fmt_shell = '%(levelname)s: %(message)s'
imf_reader.config.shell_formatter