I individually installed (and posterior uninstalled):
- python-xlib
- python3-xlib
- pyxlib
- xlib
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.
CodePudding user response:
Here's what I've found after a little digging around.
Short answer:
Use python-xlib
as it's currently maintained, whereas the others appear to be abandoned projects.
A bit of context:
xlib
: Xlib (also known as libX11) is an X Window System protocol client library written in the C programming language, Ref. However, the Python version appears to be no longer maintained.python-xlib
: The Python X Library is intended to be a fully functional X client library for Python programs. It is written entirely in Python, in contrast to earlier X libraries for Python (the ancient X extension and the newer plxlib) which were interfaces to the C Xlib. Refpyxlib
: Appears to be no longer maintained.python3-xlib
: Appears to be no longer maintained.
CodePudding user response:
Use only
- python-xlib
The other three
- python3-xlib
- pyxlib
- xlib
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.