py_canoe.core.environment.Environment
The Environment object represents the environment variables.
Source code in src\py_canoe\core\environment.py
15 16 | |
create_group()
Create a new environment group and return it as an EnvironmentGroup object.
Source code in src\py_canoe\core\environment.py
18 19 20 | |
create_info()
Create a new environment info object and return it as an EnvironmentInfo object.
Source code in src\py_canoe\core\environment.py
22 23 24 | |
get_environment_variable_value(env_var_name)
Get the value of an environment variable by name. Returns the value as an integer, float, string, or tuple, or None if an error occurs.
Source code in src\py_canoe\core\environment.py
38 39 40 41 42 43 44 45 46 47 | |
get_variable(name)
Get an environment variable by name and return it as an EnvironmentVariable object.
Source code in src\py_canoe\core\environment.py
26 27 28 | |
get_variables(vars)
Get the values of multiple environment variables specified in a list of lists, where each inner list contains the variable name and its type. Returns a list of variable values.
Source code in src\py_canoe\core\environment.py
30 31 32 | |
set_environment_variable_value(env_var_name, value)
Set the value of an environment variable by name. The value can be an integer, float, string, or tuple. Returns True if successful, False otherwise.
Source code in src\py_canoe\core\environment.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | |
set_variables(vars)
Set the values of multiple environment variables specified in a dictionary, where keys are variable names and values are the corresponding values to set.
Source code in src\py_canoe\core\environment.py
34 35 36 | |