Re: [zfs-discuss] Announcement: The Unofficial Unsupported Python ZFS API

2008-07-21 Thread Will Murnane
I have applied for and received approval for a Sourceforge project. It's rather barebones at the moment, but the important part is a public Subversion server is now available. See https://pyzfs.svn.sourceforge.net/svnroot/pyzfs/trunk . On Mon, Jul 14, 2008 at 12:04, Jonathan Hogg <[EMAIL PROTECTE

Re: [zfs-discuss] Announcement: The Unofficial Unsupported Python ZFS API

2008-07-14 Thread Jonathan Hogg
On 14 Jul 2008, at 16:07, Will Murnane wrote: > As long as I'm composing an email, I might as well mention that I had > forgotten to mention Swig as a dependency (d'oh!). I now have a > mention of it on the page, and a spec file that can be built using > pkgtool. If you tried this before and gav

Re: [zfs-discuss] Announcement: The Unofficial Unsupported Python ZFS API

2008-07-14 Thread Will Murnane
As long as I'm composing an email, I might as well mention that I had forgotten to mention Swig as a dependency (d'oh!). I now have a mention of it on the page, and a spec file that can be built using pkgtool. If you tried this before and gave up because of a missing package, please give it anoth

Re: [zfs-discuss] Announcement: The Unofficial Unsupported Python ZFS API

2008-07-14 Thread Akhilesh Mritunjai
Hi I had a quick look. Looks great! A suggestion - From given example, I think API could be made more "pythonic". Python is dynamically typed and properties can be dynamically looked up too. Thus, instead of prop_get_* we can have - 1. prop() : generic function, returning "typed" arguments. Th

[zfs-discuss] Announcement: The Unofficial Unsupported Python ZFS API

2008-07-13 Thread Will Murnane
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 wo