Return-path: Received: from mms3.broadcom.com ([216.31.210.19]:4549 "EHLO mms3.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753840Ab3GXVG3 (ORCPT ); Wed, 24 Jul 2013 17:06:29 -0400 Message-ID: <51F041CB.5060807@broadcom.com> (sfid-20130724_230633_115574_7F651CFC) Date: Wed, 24 Jul 2013 23:06:19 +0200 From: "Arend van Spriel" MIME-Version: 1.0 To: "Will Hawkins" cc: "Johannes Berg" , linux-wireless , "Thomas Graf" Subject: Re: interested in py80211? References: <51D49027.9010803@broadcom.com> ( sfid-20130703_225725_898124_EAB997AB) <1373616129.8205.2.camel@jlt4.sipsolutions.net> <51E00577.60305@broadcom.com> <51EFF8FC.8070101@opentechinstitute.org> In-Reply-To: <51EFF8FC.8070101@opentechinstitute.org> Content-Type: text/plain; charset=iso-8859-1; format=flowed Sender: linux-wireless-owner@vger.kernel.org List-ID: On 07/24/2013 05:55 PM, Will Hawkins wrote: > Thanks for posting about this effort. I would be very interested in > helping out on development. I will stay up-to-date on things via your > github page. Otherwise, please continue to keep the list updated on your > progress. Thanks, Will Based on feedback from Johannes I have taken a bit different approach. I submitted some patches to libnl adding the SWIG api for python there. Thomas took those patches recently. So the idea is to do the rest of the nl80211 specific stuff in Python. I am looking into pycparser as I would like to extract certain code fragments from nl80211.[ch] so keeping py80211 in sync with nl80211 can be automated. Regards, Arend > On 07/12/2013 09:32 AM, Arend van Spriel wrote: >> On 07/12/13 10:02, Johannes Berg wrote: >>> Yep, I'd totally be interested. Not that I don't have enough things on >>> my plate already ;-) >>> >>> On Wed, 2013-07-03 at 22:57 +0200, Arend van Spriel wrote: >>>> A common say in Linux arena is "when you have an itch, just scratch it". >>> >>> :-) >>> >>>> My itch is that tools like ifconfig and iw are great, but in an >>>> automated test environment it kind of sucks to parse output, which is >>>> confirmed by blurb from iw: "Do NOT screenscrape this tool, we don't >>>> consider its output stable.". >>> >>> Heh, yeah ... >>> >>>> Ever since my first contact with Python I tend to favor it over other >>>> scripting alternatives so I decided to scratch my itch with that and >>>> another old acquaintance called SWIG. With those I went to create >>>> py80211. A first attempt was to have SWIG create a wrapper API directly >>>> exposing the libnl-3 API, but that did not feel comfortable in a >>>> scripting environment. So the level of abstraction is a bit higher. It >>>> is just in a kick-off state (eg. can only send u32 attributes), but I >>>> decided to push it to github anyway. >>> >>> Another approach might be exposing the libnl APIs and then build a >>> higher-level library in python. Have you considered that? That might >>> make it useful to other users of netlink as well, while keeping a 'nice' >>> nl80211 API? >> >> I am still at that fork in the road and not sure about it. The libnl >> project itself already has libnl stuff exposed in a python lib being the >> core api and route. So I could go and add genl support to that and build >> the high-level python library from there. >> >> Regards, >> Arend >> >> -- >> To unsubscribe from this list: send the line "unsubscribe >> linux-wireless" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> >