I've put together some Python/Swig/C++ code that allows Python programs to interface directly with libzfs. It works fairly well: you can open filesystems and pools, retrieve properties, iterate over filesystems using a Python function instead of a C one, things throw exceptions properly, and it would be easy to add more functionality. It runs on either OpenSolaris or Solaris 10, x86 or Sparc, and uses either gcc or Sun Studio to build. Any combination of the above should work, but I've only tested a few.
As mentioned, this uses libzfs, and is thus not a stable interface to be relied on. It does work, though. I currently plan to keep it working and improve it, but if time gets tight for me, this is pretty low on my list of priorities. See http://will.incorrige.us/pyzfs/ for the download and installation instructions. If anyone is interested in helping me complete (or has suggestions on altering) the functionality of this library, please contact me at this address and send me your ssh public key for Subversion access. Suggestions, comments, questions are welcome. Will _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss