Building a toolkit from first principles is fun, I’ll admit.
I toyed with using libxcb and ctypes to make a pure python GUI toolkit once. Got as far as rendering on a screen and and event loop. Then got bored when I realized how much work it was going to be. I suppose someone could do the same with libwayland :)