envprobe.vartypes.string.String

class String(name, raw_value='')

The standard type of environment variables.

Create a new String variable.

__init__(name, raw_value='')

Create a new String variable.

Methods

__init__(name[, raw_value])

Create a new String variable.

apply_diff(diff)

Applies the given difference to the value of the instance.

diff(old, new)

Generate an iterable difference "actions" between two variables.

merge_diff(diff_a, diff_b)

Creates a merged diff from two diffs that simulates the transitive application of the first and the second diff in order.

raw()

Convert the value to raw shell representation.

type_description()

The most basic environment variable, which contains type-nondescript strings as values.

Attributes

extended_attributes

Returns the object managing the extended attributes (user-facing knowledge) about the variable.

name

The name of the variable.

value

Get the value of the variable.