Configuration
As the word simple
in the package name implies, there is not much configuration neccessary or possible.
Binaries
For the CLI implementation, the binaries zfs(8)
and zpool(8)
are being searched in $PATH
, but they may be
specified when creating an instance, in which case the library trusts you and does not perform further checks. To
overwrite, you can:
specify the
zfs_exe
orzpool_exe
kwarg when usingget_zfs()
orget_zpool()
.specify the same kwarg when creating
simplezfs.zfs_cli.ZFSCli
orZPoolCli()
directly.
Logging
The library makes use of Pythons own logging functions. It defines a tree starting with simplezfs
: