geni.minigcf.config

class geni.minigcf.config.HTTP[source]

Global configuration options for MiniGCF HTTP(S) calls.

ALLOW_REDIRECTS = False

Allow MiniGCF to follow HTTP redirects (301).

LOG_RAW_REQUESTS = False

If set to a valid (log_handle, log_level) tuple, will write all raw requests (before any parsing) to AM API and CH API calls to that log at the given level.

LOG_RAW_RESPONSES = False

If set to a valid (log_handle, log_level) tuple, will write all raw responses (before any parsing) from AM API and CH API calls to that log at the given level.

TIMEOUT = 30

Initial response timeout. Note that this is not the time limit on the entire download, just the initial server response.

geni.minigcf.config.dumps_with_log(*args, **kwargs)[source]