stuffer.store module

Key/value store for passing state between invocations of stuffer.

class stuffer.store.Set(key: Union[str, stuffer.content.DeferStr], value: Union[str, stuffer.content.DeferStr])[source]

Bases: stuffer.core.Action

Set the key value. Same as set, but implemented as Action.

key
Key name.
value
Value of key.
run()[source]

Run the Action command(s).

The default implementation runs the command returned by command().

str
The output of the command
subprocess.CalledProcessError
On execution failure.
stuffer.store.get_value(key)[source]

Retrieve the value of a key.

key
Key name.

The value of the key, or None if no key value has been set.

stuffer.store.set_value(key: str, value: str)[source]

Set a key to a value.

key
Key name.
value
Value of key.