Config

Config class holding global Raider configuration.

class Config[source]

Class dealing with global Raider configuration.

A Config object will contain all the information necessary to run Raider. It will define global configurations like the web proxy and the logging level, but also the data defined in the active project configuration files.

proxy

An optional string to define the web proxy to relay the traffic through.

verify

A boolean flag which will let the requests library know whether to check the SSL certificate or ignore it.

loglevel

A string used by the logging library to define the desired logging level.

user_agent

A string which will be used as the user agent in HTTP requests.

active_project

A string defining the current active project.

project_config

A dictionary containing all of the local variables defined in the active project’s hy configuration files.

logger

A logging.RootLogger object used for debugging.

__init__()[source]

Initializes the Config object.

Retrieves configuration from “common.hy” file, or populates it with the default values if it doesn’t exist.

write_config_file()[source]

Writes global configuration to common.hy.

Gets the current configuration from the Config object and writes them in hylang format in the “common.hy” file.

Return type

None

print_config()[source]

Prints current configuration.

Return type

None