class splatnet3_scraper.auth.EnvironmentVariablesManager

Manages environment variables for the scraper.

This class is used to manage the environment variables in an easy way. Any environment variable calls should be done through this class, it will handle obtaining the environment variables, allow additional environment variables to be added and defined, and will also handle the base environment variables that are required for this package to work.

Public members

BASE_TOKENS = ['session_token', 'gtoken', 'bullet_token']

Constructors

EnvironmentVariablesManager()

Initializes the class and sets up the base environment variables.

Methods

add_token(token_name, variable_name)

Adds a new token to the environment variables.

get(token)

Gets the environment variable for the given token.

get_all()

Gets all the environment variables.

remove_token(token_name)

Removes a token from the environment variables.

token_to_variable(token)

Given the token name, returns the environment variable name.

variable_to_token(variable)

Given the environment variable name, returns the token name.