btrsync.btrfs.parse
Parsers for the output of btrfs subcommands.
Classes
List(lines)
|
Parse the lines of output of btrfs subvolume list -t ... into an iterable of dict instances describing subvolumes. |
Show(lines)
|
Parse the lines of output of btrfs subvolume show ... into an iterable containing the filesystem path and a dict of properties. |
-
class btrsync.btrfs.parse.List(lines)[source]
Parse the lines of output of btrfs subvolume list -t ... into an iterable of dict instances describing subvolumes.
-
classmethod from_stdout(out)
Construct parser from raw command output (UTF-8 encoded bytes).
-
class btrsync.btrfs.parse.Show(lines)[source]
Parse the lines of output of btrfs subvolume show ... into an iterable containing the filesystem path and a dict of properties.
-
classmethod from_stdout(out)
Construct parser from raw command output (UTF-8 encoded bytes).