[Xcb] XCFFIB as replacement of XPYB? (Re: [Bug 87046] New: Python3 bindings for XCB)

Tycho Andersen tycho at tycho.ws
Thu Jan 8 07:09:03 PST 2015


Hi Christian,

On Thu, Jan 08, 2015 at 03:47:21PM +0100, Christian Linhart wrote:
> Hi Tycho,
> 
> Your xcffib project sounds interesting.
> 
> Since the xpyb project is essentially dead, maybe xcffib is a good successor?
> 
> How compatible is xcffib to xpyb?

I've tried to document the differences, which should be minimal for
folks trying to port apps (I think the differences are mostly
cosmetic). Of course, there are probably some I missed :)

> I ask this because there may be projects which use xpyb, so migration may be an issue.

Definitely. I'm happy to consider any incompatibility between the two
a bug, and work on or with someone to fix it.

> I don't have any time to test it right now.
> Does anybody on this list have time to do that?
> 
> Anyways, if anybody has any opinion on whether to use xcffib as replacement of xpyb, please post it here.
> 
> Chris
> 
> P.S.: Do you have time and motivation to continue maintaining it?

Yes, the primary purpose for writing it was to provide a better
experience for users of Qtile, a window manager I maintain written in
python. We finished porting Qtile to xcffib several months ago, and
our first xcffib-based release will be in a few days. As long as Qtile
is around, xcffib will be too :)

> There may be some work ahead because the xcb-xml and the generator will get a few
> additional features as soon as we'll merge the (almost) full support for the XInput-extension
> that is currently on git.demorecorder.com.

Sounds good; I usually spend 5-10 hours on Qtile/X related things, and
I would be happy to at least accept patches, and potentially build
some new code if it would be useful for others.

Tycho

> 
> 
> On 01/08/15 15:29, Tycho Andersen wrote:
> > On Sat, Dec 06, 2014 at 11:26:09AM +0000, bugzilla-daemon at freedesktop.org wrote:
> >> https://bugs.freedesktop.org/show_bug.cgi?id=87046
> >>
> >>             Bug ID: 87046
> >>            Summary: Python3 bindings for XCB
> >>            Product: XCB
> >>            Version: unspecified
> >>           Hardware: Other
> >>                 OS: All
> >>             Status: NEW
> >>           Severity: enhancement
> >>           Priority: medium
> >>          Component: Library
> >>           Assignee: xcb at lists.freedesktop.org
> >>           Reporter: amit.prakash.ambasta at gmail.com
> >>         QA Contact: xcb at lists.freedesktop.org
> >>
> >> xpyb currently still depends on python2.x and does not support python3. Please
> >> provide python3 compatible bindings for libxcb.
> > In case anyone on the list is interested, I've written a cffi-based
> > python binding which works with python2, python3, and pypy:
> >
> > https://github.com/tych0/xcffib
> >
> > Tycho
> 
> >
> >> -- 
> >> You are receiving this mail because:
> >> You are the QA Contact for the bug.
> >> You are the assignee for the bug.
> >> _______________________________________________
> >> Xcb mailing list
> >> Xcb at lists.freedesktop.org
> >> http://lists.freedesktop.org/mailman/listinfo/xcb
> > _______________________________________________
> > Xcb mailing list
> > Xcb at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/xcb
> 
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb


More information about the Xcb mailing list