I individually installed (and posterior uninstalled):
via pip (un)install
and could execute
from Xlib import X, display, Xutil
from Xlib.ext import randr
d = display.Display()
with all of them with Python 3.8.10. – What is the difference between them? Pip definitively downloads and installs different packages with different sizes.
Use only
The other three
are (seemingly) from two individuals (one holds pyxlib and xlib the other holds python3-xlib) with either broken homepage links or pointing to python-xlib. Nothing in python-xlib points to pyxlib or python3-xlib.
In the best case these are just outdated snapshots of python-xlib with questionable changes turned into packages.